main
Last change
on this file was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
285 bytes
|
Line | |
---|
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('exit', function (code) {
|
---|
11 | process.exit(code);
|
---|
12 | });
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.