Skip to content

Commit

Permalink
tooling: script improvements
Browse files Browse the repository at this point in the history
- `pretest`: stop when first script fails
- (new) `dev`: test with options more helpful when developing
- `release`: `git fetch` before calling `np` as workaround for sindresorhus/np#421
  • Loading branch information
karfau committed Jan 7, 2020
1 parent 4ec2d0f commit 64d6a77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
"scripts": {
"clear": "npx rimraf coverage .nyc_output ",
"clear:all": "npm run clear -- node_modules examples/num-args/node_modules",
"pretest": "npm run --silent tsc; cd examples/num-args; npm --silent run setup; cd -;",
"pretest": "npm run --silent tsc && cd examples/num-args && npm --silent run setup && cd -",
"test": "tap --reporter=tap --100 ",
"dev": "tap --coverage --watch",
"codecov": "tap --coverage-report=text-lcov | codecov --pipe --disable=gcov -t \"$CODECOV_TOKEN\"",
"tsc": "npm run tsc:check && npm run tsc:types",
"tsc:check": "tsc --noEmit --listFiles",
"tsc:types": "tsc -p tsconfig.types.json5 --emitDeclarationOnly --listEmittedFiles",
"prerelease": "npm --silent run clear:all; npm ci",
"release": "np"
"release": "git fetch --all --progress && np"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 64d6a77

Please sign in to comment.