From 53f3554314a1af8a31554098217836df0deaadba Mon Sep 17 00:00:00 2001 From: "muyun.my" Date: Tue, 10 Nov 2020 22:42:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E5=BC=95=E6=93=8E=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/datasource-engine/interpret.js | 2 +- packages/datasource-engine/package.json | 10 +++++----- packages/datasource-engine/tsconfig.json | 6 +++--- packages/react-renderer/package.json | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) 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" }