Skip to content

Commit 05b6d55

Browse files
committed
Correct test watch. Closes #34.
1 parent ffdfaab commit 05b6d55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

generators/app/templates/_package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,21 @@
1919
"lint": "tslint --force --format verbose \"src/**/*.ts\"",
2020
"prepublish": "npm run build",
2121
"prebuild": "npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version",
22-
"build": "tsc --pretty",
22+
"build": "tsc --pretty && tsc -p tsconfig.test.json --pretty",
2323
"test": "npm run clean && tsc -p tsconfig.test.json --pretty && nyc --exclude \"**/*-spec.js\" ava \"**/*-spec.js\" --verbose",
2424
"coverage": "nyc report --reporter=lcov --reporter=text --reporter=html",
2525
"watch": "npm run build -- --watch",
26-
"watch:test": "npm run test -- --watch"
26+
"watch:test:ts": "tsc -p tsconfig.test.json --pretty --watch",
27+
"watch:test:ava": "ava \"**/*-spec.js\" --verbose --watch",
28+
"watch:test": "run-p watch:test:ts watch:test:ava"
2729
},
2830
"dependencies": {
2931
},
3032
"devDependencies": {
3133
"@types/node": "^8.0.0",
3234
"ava": "^0.20.0",
3335
"coveralls": "^2.0.0",
36+
"npm-run-all": "^4.0.2",
3437
"nyc": "^10.0.0",
3538
"prettier": "^1.5.2",
3639
"rimraf": "^2.0.0",

0 commit comments

Comments
 (0)