@514labs/moose-cli 0.3.176 → 0.3.177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { spawnSync } from "child_process";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const child_process_1 = require("child_process");
3
5
  /**
4
6
  * Returns the executable path which is located inside `node_modules`
5
7
  * The naming convention is app-${os}-${arch}
@@ -32,12 +34,13 @@ function getExePath() {
32
34
  * Runs the application with args using nodejs spawn
33
35
  */
34
36
  function run() {
37
+ var _a;
35
38
  const args = process.argv.slice(2);
36
39
  // ignore sigint in the node parent process
37
40
  // so that we can wait until we have processResult when the rust process returns
38
41
  // instead of prematurely exiting
39
42
  process.on("SIGINT", () => { });
40
- const processResult = spawnSync(getExePath(), args, { stdio: "inherit" });
41
- process.exit(processResult.status ?? 0);
43
+ const processResult = (0, child_process_1.spawnSync)(getExePath(), args, { stdio: "inherit" });
44
+ process.exit((_a = processResult.status) !== null && _a !== void 0 ? _a : 0);
42
45
  }
43
46
  run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@514labs/moose-cli",
3
- "version": "0.3.176",
3
+ "version": "0.3.177",
4
4
  "bin": {
5
5
  "moose": "dist/index.js",
6
6
  "moose-cli": "dist/index.js"
@@ -17,10 +17,10 @@
17
17
  "@repo/ts-config": "0.0.0"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@514labs/moose-cli-darwin-arm64": "0.3.176",
21
- "@514labs/moose-cli-darwin-x64": "0.3.176",
22
- "@514labs/moose-cli-linux-arm64": "0.3.176",
23
- "@514labs/moose-cli-linux-x64": "0.3.176"
20
+ "@514labs/moose-cli-darwin-arm64": "0.3.177",
21
+ "@514labs/moose-cli-darwin-x64": "0.3.177",
22
+ "@514labs/moose-cli-linux-arm64": "0.3.177",
23
+ "@514labs/moose-cli-linux-x64": "0.3.177"
24
24
  },
25
25
  "scripts": {
26
26
  "typecheck": "tsc --noEmit",