@514labs/moose-cli 0.3.73 → 0.3.75
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.
- package/dist/index.js +5 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
@@ -23,6 +23,7 @@ function getExePath() {
|
|
23
23
|
}
|
24
24
|
try {
|
25
25
|
// Since the binary will be located inside `node_modules`, we can simply call `require.resolve`
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
26
27
|
return require.resolve("@514labs/moose-cli-".concat(os, "-").concat(arch, "/bin/moose-cli").concat(extension));
|
27
28
|
}
|
28
29
|
catch (e) {
|
@@ -35,6 +36,10 @@ function getExePath() {
|
|
35
36
|
function run() {
|
36
37
|
var _a;
|
37
38
|
var args = process.argv.slice(2);
|
39
|
+
// ignore sigint in the node parent process
|
40
|
+
// so that we can wait until we have processResult when the rust process returns
|
41
|
+
// instead of prematurely exiting
|
42
|
+
process.on('SIGINT', function () { });
|
38
43
|
var processResult = (0, child_process_1.spawnSync)(getExePath(), args, { stdio: "inherit" });
|
39
44
|
process.exit((_a = processResult.status) !== null && _a !== void 0 ? _a : 0);
|
40
45
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@514labs/moose-cli",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.75",
|
4
4
|
"bin": {
|
5
5
|
"moose": "dist/index.js",
|
6
6
|
"moose-cli": "dist/index.js"
|
@@ -17,10 +17,10 @@
|
|
17
17
|
"typescript": "^4.9.5"
|
18
18
|
},
|
19
19
|
"optionalDependencies": {
|
20
|
-
"@514labs/moose-cli-darwin-arm64": "0.3.
|
21
|
-
"@514labs/moose-cli-darwin-x64": "0.3.
|
22
|
-
"@514labs/moose-cli-linux-arm64": "0.3.
|
23
|
-
"@514labs/moose-cli-linux-x64": "0.3.
|
20
|
+
"@514labs/moose-cli-darwin-arm64": "0.3.75",
|
21
|
+
"@514labs/moose-cli-darwin-x64": "0.3.75",
|
22
|
+
"@514labs/moose-cli-linux-arm64": "0.3.75",
|
23
|
+
"@514labs/moose-cli-linux-x64": "0.3.75"
|
24
24
|
},
|
25
25
|
"scripts": {
|
26
26
|
"typecheck": "tsc --noEmit",
|