Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Bugfixes:
- Fix dynamic libraries compatibility problems by publishing a statically linked executable for Linux (#427, #437)
- `--clear-screen` (usable e.g. with `spago build --watch`) now also resets cursor position, so the rebuild message always appears at top left of the screen (#465)
- Fix `--config` option when config file is in another directory (#484)
- Fix Ctrl-C handling in REPL when using NPM installation on Windows (#493, #483)

Other improvements:
- Speed up test suite by replacing couple of end 2 end bump-version tests with unit/property tests
Expand Down
7 changes: 7 additions & 0 deletions npm/spago
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env node
// This file is only used on Windows. In *nix NPM installations it's replaced
// with the actual spago binary.

const cp = require("child_process");

// Ignore SIGINT (Ctrl-C) because we don't want to terminate this process from
// it (#483). Spago.exe will handle it for us
process.on('SIGINT', () => {});

const spago = cp.spawn(__dirname + '/spago.exe', process.argv.slice(2), {stdio: 'inherit'});
spago.on('error', (err) => {
console.log("Downloading the spago binary failed. Please try reinstalling the spago npm package.");
Expand Down