MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / run

Function run

packages/nativescript-inspector/scripts/build.mjs:11–20  ·  view source on GitHub ↗
(cmd, args, label)

Source from the content-addressed store, hash-verified

9process.chdir(root);
10
11function run(cmd, args, label) {
12 const result = spawnSync(cmd, args, {
13 stdio: "inherit",
14 shell: process.platform === "win32",
15 });
16 if (result.status !== 0) {
17 console.error(`[${label}] failed with status ${result.status}`);
18 process.exit(result.status ?? 1);
19 }
20}
21
22rmSync("build", { recursive: true, force: true });
23

Callers 1

build.mjsFile · 0.70

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected