|
18 | 18 | "node": ">=10" |
19 | 19 | }, |
20 | 20 | "scripts": { |
21 | | - "build": "npm run clean && babel src -d lib --extensions '.js,.ts' --ignore '**/*.spec.js','**/*.spec.ts' && npm run build-types", |
22 | | - "build-demo": "wp --config demo/webpack.config.js", |
23 | | - "build-types": "tsc -p ./tsconfig.types.json", |
| 21 | + "build": "run-s clean build:*", |
| 22 | + "build:src": "babel src -d lib --extensions '.js,.ts' --ignore '**/*.spec.js','**/*.spec.ts'", |
| 23 | + "build:demo": "wp --config demo/webpack.config.js", |
| 24 | + "build:types": "tsc -p ./tsconfig.types.json", |
24 | 25 | "clean": "rimraf lib/*", |
25 | 26 | "format": "prettier --write 'src/**'", |
26 | | - "lint": "tsc -p ./tsconfig.json && eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json", |
27 | | - "lint-demo": "tsc -p ./demo/tsconfig.json && eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json", |
| 27 | + "lint": "run-s lint:*", |
| 28 | + "lint:src": "tsc -p ./tsconfig.json && eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json", |
| 29 | + "lint:demo": "tsc -p ./demo/tsconfig.json && eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json", |
28 | 30 | "precommit": "pretty-quick --staged", |
29 | 31 | "prepublish": "npx publish-please guard", |
30 | 32 | "publish-please": "npx publish-please", |
31 | | - "publish-please-prereqs": "npm run lint && npm run test && npm run build", |
| 33 | + "publish-please-prereqs": "run-s lint test build", |
32 | 34 | "test": "jest --coverage" |
33 | 35 | }, |
34 | 36 | "jest": { |
|
60 | 62 | "husky": "^0.14.3", |
61 | 63 | "jest": "^26.0.0", |
62 | 64 | "jest-when": "^2.7.0", |
| 65 | + "npm-run-all": "^4.1.5", |
63 | 66 | "prettier": "^1.13.7", |
64 | 67 | "pretty-quick": "^1.6.0", |
65 | 68 | "regenerator-runtime": "^0.13.3", |
|
0 commit comments