Skip to content

Commit d9f84b1

Browse files
committed
attempt at making install script work on windows
1 parent a7a6d65 commit d9f84b1

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

TODO

Lines changed: 0 additions & 1 deletion
This file was deleted.

install/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
var args = process.env.CI === 'true' ? ['rebuild', '--debug'] : ['rebuild'];
3+
var child = require('child_process').spawn('node-gyp', args, {
4+
encoding: 'utf8',
5+
stdio: 'inherit',
6+
cwd: require('path').dirname(__dirname)
7+
});
8+
9+
child.on('exit', function (code) {
10+
process.exit(code);
11+
});
12+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"sqlite3": "^3.1.4"
2323
},
2424
"scripts": {
25-
"install": "if [ \"$CI\" = \"true\" ]; then node-gyp rebuild --debug; else node-gyp rebuild; fi;",
25+
"install": "node install",
2626
"test": "$(npm bin)/mocha --bail --timeout 5000 --slow 5000",
2727
"pretest": "rm -r ./temp/ || true && mkdir ./temp/",
2828
"posttest": "rm -r ./temp/",

0 commit comments

Comments
 (0)