|
6 | 6 | ], |
7 | 7 | "scripts": { |
8 | 8 | "build": "yarn workspaces run prepare", |
9 | | - "prepublish-packages": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test", |
| 9 | + "check:all": "yarn check:flow && yarn check:ts && yarn check:snapshots yarn check:lint", |
| 10 | + "check:flow": "flow check --max-warnings=0", |
| 11 | + "check:ts": "tsc", |
| 12 | + "check:snapshots": "yarn workspaces run check-snapshot", |
| 13 | + "check:lint": "eslint scripts/ packages/ docs/ --ext js,md", |
| 14 | + "prepublish-packages": "yarn build && yarn check:all && yarn format:ci && yarn test", |
10 | 15 | "publish-packages": "lerna publish", |
11 | | - "typecheck": "flow check --max-warnings=0", |
12 | | - "ts-check": "tsc", |
13 | | - "lint": "eslint scripts/ packages/ docs/ --ext js,md", |
14 | 16 | "format": "prettier \"*.{js,md,json}\" \"{docs,packages,scripts}/**/*.{js,md,json}\" --write", |
15 | 17 | "format:ci": "yarn format -- --list-different", |
16 | 18 | "test": "karma start --single-run", |
17 | 19 | "test:watch": "karma start", |
18 | | - "check-snapshots": "yarn workspaces run check-snapshot", |
19 | 20 | "posttest": "[ -z \"$TRAVIS\" ] || codecov", |
20 | 21 | "codecov": "codecov", |
21 | 22 | "bench": "cross-env BENCHMARK=true karma start --single-run", |
22 | | - "pre-commit": "lint-staged && yarn typecheck && yarn ts-check && yarn check-snapshots" |
| 23 | + "pre-commit": "lint-staged && yarn check:all" |
23 | 24 | }, |
24 | 25 | "lint-staged": { |
25 | 26 | "**/*.{js,md,json,ts}": [ |
|
0 commit comments