Browse Source

KERNEL-14512 chore:打包调整

es6
Treecat 2 years ago
parent
commit
017e9363d0
  1. 5
      package.json
  2. 14
      packages/fineui/package.json
  3. 7
      packages/fineui/tsconfig.json

5
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",

14
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",

7
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,

Loading…
Cancel
Save