cc038a7372
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
14 lines
285 B
JavaScript
14 lines
285 B
JavaScript
#!/usr/bin/env node
|
|
|
|
const {spawn} = require('child_process');
|
|
|
|
if (process.env.npm_config_build_from_source === 'true') {
|
|
build();
|
|
}
|
|
|
|
function build() {
|
|
spawn('node-gyp', ['rebuild'], { stdio: 'inherit', shell: true }).on('exit', function (code) {
|
|
process.exit(code);
|
|
});
|
|
}
|