Skip to content

Commit 1805d2c

Browse files
committed
Fix nps script problems on windows
1 parent 07982e2 commit 1805d2c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

package-scripts.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ module.exports = {
5353
)
5454
},
5555
pretest: {
56-
script: './node_modules/.bin/tslint -c ./tslint.json -t stylish "./test/unit/**/*.ts"'
56+
script: '\"./node_modules/.bin/tslint\" -c ./tslint.json -t stylish "./test/unit/**/*.ts"'
5757
},
5858
run: {
59-
script: './node_modules/.bin/cross-env NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=unit'
59+
script: '\"./node_modules/.bin/cross-env\" NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=unit'
6060
},
6161
verbose: {
6262
script: 'nps "test --verbose"'
@@ -75,28 +75,28 @@ module.exports = {
7575
)
7676
},
7777
pretest: {
78-
script: './node_modules/.bin/tslint -c ./tslint.json -t stylish "./test/e2e/**/*.ts"'
78+
script: '\"./node_modules/.bin/tslint\" -c ./tslint.json -t stylish "./test/e2e/**/*.ts"'
7979
},
8080
verbose: {
8181
script: 'nps "test.e2e --verbose"'
8282
},
8383
run: series(
8484
`wait-on --timeout 120000 http-get://localhost:3000/api/info`,
85-
'./node_modules/.bin/cross-env NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=e2e -i'
85+
'\"./node_modules/.bin/cross-env\" NODE_ENV=test \"./node_modules/.bin/jest\" --testPathPattern=e2e -i'
8686
),
8787
}
8888
},
8989
/**
9090
* Runs TSLint over your project
9191
*/
9292
lint: {
93-
script: `./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish`
93+
script: `"./node_modules/.bin/tslint" -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish`
9494
},
9595
/**
9696
* Transpile your app into javascript
9797
*/
9898
transpile: {
99-
script: `./node_modules/.bin/tsc`
99+
script: `"./node_modules/.bin/tsc"`
100100
},
101101
/**
102102
* Clean files and folders
@@ -106,7 +106,7 @@ module.exports = {
106106
script: series(`nps banner.clean`, `nps clean.dist`)
107107
},
108108
dist: {
109-
script: `./node_modules/.bin/trash './dist'`
109+
script: `"./node_modules/.bin/trash" './dist'`
110110
}
111111
},
112112
/**
@@ -178,11 +178,11 @@ function banner(name) {
178178
}
179179

180180
function copy(source, target) {
181-
return `./node_modules/.bin/copyup ${source} ${target}`
181+
return `"./node_modules/.bin/copyup" ${source} ${target}`
182182
}
183183

184184
function run(path) {
185-
return `./node_modules/.bin/ts-node ${path}`
185+
return `"./node_modules/.bin/ts-node" ${path}`
186186
}
187187

188188
function runFast(path) {

0 commit comments

Comments
 (0)