Skip to content

Commit 733e70b

Browse files
committed
better scripts
1 parent 6e6ece8 commit 733e70b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@
66
],
77
"scripts": {
88
"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",
1015
"publish-packages": "lerna publish",
11-
"typecheck": "flow check --max-warnings=0",
12-
"ts-check": "tsc",
13-
"lint": "eslint scripts/ packages/ docs/ --ext js,md",
1416
"format": "prettier \"*.{js,md,json}\" \"{docs,packages,scripts}/**/*.{js,md,json}\" --write",
1517
"format:ci": "yarn format -- --list-different",
1618
"test": "karma start --single-run",
1719
"test:watch": "karma start",
18-
"check-snapshots": "yarn workspaces run check-snapshot",
1920
"posttest": "[ -z \"$TRAVIS\" ] || codecov",
2021
"codecov": "codecov",
2122
"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"
2324
},
2425
"lint-staged": {
2526
"**/*.{js,md,json,ts}": [

0 commit comments

Comments
 (0)