Debian Codegraph @

node/@parcel/watcher/scripts/build-from-source.js

raw
1 #!/usr/bin/env node
2
3 const {spawn} = require('child_process');
4
5 if (process.env.npm_config_build_from_source === 'true') {
6 build();
7 }
8
9 function build() {
10 spawn('node-gyp', ['rebuild'], {stdio: 'inherit', shell: true}).on(
11 'exit',
12 function (code) {
13 process.exit(code);
14 },
15 );
16 }