|
4 | 4 | "description": "fe-theme", |
5 | 5 | "main": "babel.config.js", |
6 | 6 | "scripts": { |
7 | | - "test": "echo \"Error: no test specified\" && exit 1" |
| 7 | + "test": "echo \"Error: no test specified\" && exit 1", |
| 8 | + "build": "run-s build:clean && run-p build:es build:cjs", |
| 9 | + "build:clean": "rimraf es cjs", |
| 10 | + "build:es": "babel js -d es --ignore *.test.js,*.story.js", |
| 11 | + "build:cjs": "NODE_ENV=cjs babel js -d cjs --ignore *.test.js,*.story.js", |
| 12 | + "build:prepare": "node ./src/scripts/buildPrepare.js" |
8 | 13 | }, |
9 | 14 | "repository": { |
10 | 15 | "type": "git", |
|
15 | 20 | "bugs": { |
16 | 21 | "url": "https://github.com/hdlion/ui-theme/issues" |
17 | 22 | }, |
18 | | - "homepage": "https://github.com/hdlion/ui-theme#readme" |
| 23 | + "homepage": "https://github.com/hdlion/ui-theme#readme", |
| 24 | + "dependencies": { |
| 25 | + "@babel/cli": "^7.23.4", |
| 26 | + "@babel/plugin-proposal-class-properties": "^7.18.6", |
| 27 | + "@babel/plugin-proposal-export-default-from": "^7.23.3", |
| 28 | + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", |
| 29 | + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", |
| 30 | + "@babel/plugin-transform-runtime": "^7.23.4", |
| 31 | + "@babel/preset-env": "^7.23.3", |
| 32 | + "@babel/preset-react": "^7.23.3", |
| 33 | + "babel-plugin-styled-components": "^2.1.4", |
| 34 | + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", |
| 35 | + "npm-run-all": "^4.1.5" |
| 36 | + } |
19 | 37 | } |
0 commit comments