MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / runBuildScript

Function runBuildScript

gulpfile.js:47–67  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

45const extensionName = isNightly ? 'js-debug-nightly' : 'js-debug';
46
47async function runBuildScript(name) {
48 return new Promise((resolve, reject) =>
49 cp.execFile(
50 process.execPath,
51 [path.join(__dirname, buildDir, 'src', 'build', name)],
52 (err, stdout, stderr) => {
53 process.stderr.write(stderr);
54 if (err) {
55 return reject(err);
56 }
57
58 const outstr = stdout.toString('utf-8');
59 try {
60 resolve(JSON.parse(outstr));
61 } catch {
62 resolve(outstr);
63 }
64 },
65 )
66 );
67}
68
69const writeFile = util.promisify(fs.writeFile);
70const readFile = util.promisify(fs.readFile);

Callers 1

gulpfile.jsFile · 0.85

Calls 4

resolveFunction · 0.85
writeMethod · 0.65
parseMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected