|
16 | 16 | "lint:docs": "prettier --check 'packages/docs/**/*.{md,js,html,vue}'", |
17 | 17 | "lint:types": "tsc --build tsconfig.lint.json", |
18 | 18 | "fix:docs": "prettier --write 'packages/docs/**/*.{md,js,html,vue}'", |
19 | | - "build": "npm run build:babel && npm run build:types && npm run build:bundle && npm run build:cp-files", |
| 19 | + "build": "rm -rf dist && npm run build:pkg && npm run build:types && npm run build:cp-files", |
20 | 20 | "build:cp-files": "cp packages/js-toolkit/package.json dist/ && cp LICENSE dist/ && cp README.md dist", |
21 | 21 | "build:types": "tsc --build tsconfig.build.json", |
22 | | - "build:babel": "babel --no-comments --delete-dir-on-start --out-dir dist/ packages/js-toolkit", |
23 | | - "build:bundle": "npm run build:bundle:modern && npm run build:bundle:umd", |
24 | | - "build:bundle:modern": "NODE_TARGET=bundle microbundle -i packages/js-toolkit/index.js -o dist/index.modern.js -f modern --no-sourcemap --no-pkg-main --external none", |
25 | | - "build:bundle:umd": "NODE_TARGET=bundle microbundle -i packages/js-toolkit/index.js -o dist/index.umd.js -f umd --no-sourcemap --name Base --no-pkg-main --external none" |
| 22 | + "build:pkg": "node scripts/build.js" |
26 | 23 | }, |
27 | 24 | "devDependencies": { |
28 | | - "@babel/cli": "^7.16.7", |
29 | | - "@babel/core": "^7.16.5", |
30 | | - "@babel/plugin-proposal-class-properties": "^7.16.7", |
31 | | - "@babel/plugin-transform-runtime": "^7.16.5", |
32 | | - "@babel/preset-env": "^7.16.5", |
33 | | - "@studiometa/browserslist-config": "^1.0.1", |
34 | 25 | "@studiometa/eslint-config": "^2.1.3", |
35 | 26 | "@studiometa/prettier-config": "^2.1.1", |
36 | 27 | "@studiometa/stylelint-config": "^2.0.0", |
|
39 | 30 | "@types/node": "^16.11.13", |
40 | 31 | "@typescript-eslint/eslint-plugin": "^4.29.3", |
41 | 32 | "@typescript-eslint/parser": "^4.29.3", |
42 | | - "babel-plugin-add-import-extension": "^1.6.0", |
| 33 | + "esbuild": "^0.14.12", |
43 | 34 | "eslint": "^7.32.0", |
44 | 35 | "eslint-plugin-jest": "^24.4.0", |
45 | | - "microbundle": "^0.13.3", |
| 36 | + "fast-glob": "^3.2.11", |
46 | 37 | "prettier": "^2.5.1", |
47 | 38 | "typescript": "^4.5.4" |
48 | 39 | } |
|
0 commit comments