Lines Matching +full:node +full:- +full:gyp
1 #!/usr/bin/env node
3 // Usage: e.g. node build-addons.mjs <path to node-gyp> <directory>
5 import child_process from 'node:child_process';
6 import path from 'node:path';
7 import fs from 'node:fs/promises';
8 import util from 'node:util';
9 import process from 'node:process';
10 import os from 'node:os';
20 // Only run for directories that have a `binding.gyp`.
21 // (https://github.com/nodejs/node/issues/14843)
22 await fs.stat(path.join(dir, 'binding.gyp'));
31 await execFile(process.execPath, [nodeGyp, 'rebuild', `--directory=${dir}`],
34 env: { ...process.env, MAKEFLAGS: '-j1' },
61 } else if (dirent.isFile() && dirent.name === 'binding.gyp') {