X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fscripts%2Finstall.js;fp=node_modules%2Fnode-pty%2Fscripts%2Finstall.js;h=d88b7f108b4a1a3429bf50d72884f9a5a84158f4;hp=0000000000000000000000000000000000000000;hb=e79e4a5a87f3e84f7c1777f10a954453a69bf540;hpb=4339da12467b75fb8b6ca831f4bf0081c485ed2c diff --git a/node_modules/node-pty/scripts/install.js b/node_modules/node-pty/scripts/install.js new file mode 100644 index 0000000..d88b7f1 --- /dev/null +++ b/node_modules/node-pty/scripts/install.js @@ -0,0 +1,18 @@ +'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); +});