diff --git a/package.json b/package.json index e5313ec82..06c697c02 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,11 @@ "keywords": [], "author": "", "license": "ISC", + "engines": { + "node": ">=16.0.0", + "yarn": "please-use-pnpm", + "pnpm": ">=7.0.0" + }, "scripts": { "dev": "npm-run-all --parallel dev:*", "dev:demo": "pnpm --dir packages/demo dev", diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 1d9d5143a..8977c42fd 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -2,9 +2,9 @@ "name": "@fui/core", "version": "2.0.20230208163847", "description": "fineui", - "main": "dist/fineui_without_conflict.min.js", + "main": "dist/fineui.min.js", "module": "dist/es/index.js", - "types": "dist/type/index.d.ts", + "types": "dist/lib/index.d.ts", "bin": { "fui-cli": "./bin/cli/cli.js" }, @@ -19,14 +19,17 @@ "dist/es/case/ztree/jquery.ztree.excheck-3.5.js" ], "scripts": { - "dev": "babel src -d dist/es --config-file ./esm.babel.js -w", - "build": "run-p build:*", + "dev": "tsc && babel src -d dist/es --config-file ./esm.babel.js -w", + "build": "tsc && run-p build:*", "build:es": "babel src -d dist/es --config-file ./esm.babel.js", "build:fineui": "webpack --progress --config=webpack/webpack.prod.js", "webpack:css": "webpack --config=webpack/webpack.css.js --mode production", "build:biCss": "cross-env LESS_CONFIG_PATH=lessconfig/bi.lessconfig.json LESS_FILE_NAME=bi npm run webpack:css", "build:jsyCss": "cross-env LESS_CONFIG_PATH=lessconfig/jsy.lessconfig.json LESS_FILE_NAME=jsy npm run webpack:css" }, + "files": [ + "dist" + ], "repository": { "type": "git", "url": "https://git.coding.net/fanruan/fineui.git" @@ -37,7 +40,8 @@ "finebi" ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "author": "fanruan", "license": "MIT", diff --git a/packages/fineui/tsconfig.json b/packages/fineui/tsconfig.json index c4d27c622..5a888d48a 100644 --- a/packages/fineui/tsconfig.json +++ b/packages/fineui/tsconfig.json @@ -4,10 +4,13 @@ "target": "es2017", "module": "es2015", "moduleResolution": "node", - "lib": ["es2017", "dom"], + "lib": [ + "es2017", + "dom" + ], "declaration": true, "experimentalDecorators": true, - "outDir": "./type/lib", + "outDir": "./dist/lib", "baseUrl": ".", // "strict": true, "strictNullChecks": true,