MCPcopy Create free account
hub / github.com/stenciljs/core / runCommand

Function runCommand

scripts/updateSelectorEngine.ts:94–101  ·  view source on GitHub ↗
(cmd: string, cwd: string)

Source from the content-addressed store, hash-verified

92}
93
94function runCommand(cmd: string, cwd: string) {
95 return new Promise((resolve, reject) => {
96 console.log(`> ${cmd}`);
97 const child = cp.spawn(cmd, { cwd, shell: true });
98 child.on('error', reject);
99 child.on('exit', (code) => (code === 0 ? resolve(child) : reject()));
100 });
101}
102
103if (require.main === module) {
104 run();

Callers 1

runFunction · 0.85

Calls 3

resolveFunction · 0.85
rejectFunction · 0.85
onMethod · 0.80

Tested by

no test coverage detected