You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
427 B
18 lines
427 B
'use strict' |
|
|
|
const os = require('os'); |
|
const path = require('path'); |
|
const spawn = require('child_process').spawn; |
|
|
|
const gypArgs = ['rebuild']; |
|
if (process.env.NODE_PTY_DEBUG) { |
|
gypArgs.push('--debug'); |
|
} |
|
const gypProcess = spawn(os.platform() === 'win32' ? 'node-gyp.cmd' : 'node-gyp', gypArgs, { |
|
cwd: path.join(__dirname, '..'), |
|
stdio: 'inherit' |
|
}); |
|
|
|
gypProcess.on('exit', function (code) { |
|
process.exit(code); |
|
});
|
|
|