Skip to content

Commit

Permalink
Merge branch 'main' into time-drift
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev committed Aug 3, 2022
2 parents 00ebe63 + dc67f4e commit ed3fdb7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const protos = [

function exec(command, argv) {
return new Promise((resolve, reject) => {
const child = cp.spawn(process.execPath, [command, ...argv], {
const child = cp.spawn(command, argv, {
shell: true,
stdio: ['ignore', 'inherit', 'inherit'],
});
child.on('exit', (code, signal) => {
Expand All @@ -27,15 +28,15 @@ function exec(command, argv) {
return;
}
resolve();
})
});
});
}

function pbts(pbjsOutFile) {
const pbtsPath = path.resolve(__dirname, '../node_modules/.bin/pbts');
const pbtsOptions = [
'-o', path.join(generatedPath, 'root.d.ts'),
]
];
return exec(pbtsPath, [...pbtsOptions, pbjsOutFile]);
}

Expand Down

0 comments on commit ed3fdb7

Please sign in to comment.