@@ -8,7 +8,7 @@ option "-m", "--map", "Whether to generate source maps."
8
8
9
9
task " build" , " Builds the project." , (options ) ->
10
10
sourcemaps = if options .map then [" --map" ] else []
11
- run " coffee" , " --compile" , sourcemaps... , " --no-header" , " --output" , " lib" , " src"
11
+ npx " coffee" , " --compile" , sourcemaps... , " --no-header" , " --output" , " lib" , " src"
12
12
13
13
task " clean" , " Deletes all generated files." , ->
14
14
rmSync join (" lib" , file) for file from readdirSync " lib" when not file .endsWith " .d.ts"
@@ -28,12 +28,12 @@ task "publish", "Publishes the package.", ->
28
28
29
29
task " test" , " Runs the test suite." , ->
30
30
env .NODE_ENV = " test"
31
- run " coffee" , " --compile" , " --map" , " --no-header" , " --output" , " lib" , " src" , " test"
31
+ npx " coffee" , " --compile" , " --map" , " --no-header" , " --output" , " lib" , " src" , " test"
32
32
run " node" , " --enable-source-maps" , " --test" , " --test-reporter=spec" , " lib/**/*_test.js"
33
33
34
34
task " watch" , " Watches for file changes." , (options ) ->
35
35
sourcemaps = if options .map then [" --map" ] else []
36
- run " coffee" , " --compile" , sourcemaps... , " --no-header" , " --output" , " lib" , " --watch" , " src" , " test"
36
+ npx " coffee" , " --compile" , sourcemaps... , " --no-header" , " --output" , " lib" , " --watch" , " src" , " test"
37
37
38
38
# Executes a command from a local package.
39
39
npx = (command , args ... ) -> run " npm" , " exec" , " --" , command, args...
0 commit comments