|
12 | 12 | "build:flow": "cpy src/index.js.flow lib & cpy src/index.js.flow es", |
13 | 13 | "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", |
14 | 14 | "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
15 | | - "build:umd": |
16 | | - "cross-env BABEL_ENV=es NODE_ENV=development rollup -c -o dist/react-powerplug.js", |
17 | | - "build:umd:min": |
18 | | - "cross-env BABEL_ENV=es NODE_ENV=production rollup -c -o dist/react-powerplug.min.js", |
19 | | - "build:all": |
20 | | - "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min && npm run build:flow", |
| 15 | + "build:umd": "cross-env BABEL_ENV=es NODE_ENV=development rollup -c -o dist/react-powerplug.js", |
| 16 | + "build:umd:min": "cross-env BABEL_ENV=es NODE_ENV=production rollup -c -o dist/react-powerplug.min.js", |
| 17 | + "build:all": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min && npm run build:flow", |
21 | 18 | "build": "npm run clean && npm run build:all", |
22 | 19 | "clean": "rimraf lib dist es", |
23 | 20 | "typecheck:flow": "flow check && [[ $(flow check) == 'Found 0 errors' ]]", |
24 | 21 | "lint": "eslint src", |
25 | 22 | "test:only": "jest", |
26 | | - "test:bundle": |
27 | | - "jest --setupTestFrameworkScriptFile ./tests/jestBundleSetup.js", |
| 23 | + "test:bundle": "jest --setupTestFrameworkScriptFile ./tests/jestBundleSetup.js", |
28 | 24 | "test:lib": "jest --setupTestFrameworkScriptFile ./tests/jestLibSetup.js", |
29 | | - "test:all": |
30 | | - "npm run build && npm run test:only && npm run test:bundle && npm run test:lib && npm run clean", |
| 25 | + "test:all": "npm run build && npm run test:only && npm run test:bundle && npm run test:lib && npm run clean", |
31 | 26 | "test": "npm run test:all", |
32 | 27 | "precommit": "lint-staged", |
33 | 28 | "prepublishOnly": "npm run lint && npm run clean && npm run build" |
|
0 commit comments