Skip to content

Commit 2a9262c

Browse files
author
Cédric Belin
committed
Fix the build system
1 parent 108af83 commit 2a9262c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cakefile.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option "-m", "--map", "Whether to generate source maps."
88

99
task "build", "Builds the project.", (options) ->
1010
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"
1212

1313
task "clean", "Deletes all generated files.", ->
1414
rmSync join("lib", file) for file from readdirSync "lib" when not file.endsWith ".d.ts"
@@ -28,12 +28,12 @@ task "publish", "Publishes the package.", ->
2828

2929
task "test", "Runs the test suite.", ->
3030
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"
3232
run "node", "--enable-source-maps", "--test", "--test-reporter=spec", "lib/**/*_test.js"
3333

3434
task "watch", "Watches for file changes.", (options) ->
3535
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"
3737

3838
# Executes a command from a local package.
3939
npx = (command, args...) -> run "npm", "exec", "--", command, args...

0 commit comments

Comments
 (0)