diff --git a/packages/datasource-engine/interpret.js b/packages/datasource-engine/interpret.js index 42c42028e..2cc45ddc7 100644 --- a/packages/datasource-engine/interpret.js +++ b/packages/datasource-engine/interpret.js @@ -1 +1 @@ -module.exports = require('./dist/interpret'); +module.exports = require('./dist/interpret/index'); diff --git a/packages/datasource-engine/package.json b/packages/datasource-engine/package.json index 9c3d3e08a..7e3ccab81 100644 --- a/packages/datasource-engine/package.json +++ b/packages/datasource-engine/package.json @@ -2,22 +2,22 @@ "name": "@ali/lowcode-datasource-engine", "version": "1.0.19", "description": "DataSource Engine for lowcode", - "main": "lib/index.js", - "module": "es/index.js", + "main": "dist/index.js", "typings": "dist/index.d.ts", "files": [ "dist", "src", "interpret*", - "runtime*", - "lib" + "runtime*" ], "scripts": { - "build": "rm -rf dist && tsc --outDir ./dist --module esnext", + "clean": "rm -rf dist", + "build": "npm run clean && tsc ", "test": "ava", "prepublishOnly": "npm run build" }, "dependencies": { + "@ali/lowcode-datasource-types": "^1.0.19", "@ali/lowcode-types": "^1.0.17", "typescript": "^3.9.7" }, diff --git a/packages/datasource-engine/tsconfig.json b/packages/datasource-engine/tsconfig.json index 4c30ce1c8..ef698791a 100644 --- a/packages/datasource-engine/tsconfig.json +++ b/packages/datasource-engine/tsconfig.json @@ -2,9 +2,9 @@ "compilerOptions": { /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, - // "lib": [], /* Specify library files to be included in the compilation. */ + "target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, + "module": "esnext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, + "lib": ["ESNext", "DOM"] /* Specify library files to be included in the compilation. */, // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ "jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, diff --git a/packages/react-renderer/package.json b/packages/react-renderer/package.json index 2db726fde..ed426b3ac 100644 --- a/packages/react-renderer/package.json +++ b/packages/react-renderer/package.json @@ -54,5 +54,5 @@ "publishConfig": { "registry": "http://registry.npm.alibaba-inc.com" }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@1.0.17/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@1.0.18/build/index.html" }