ghostdock 0.1.0 → 0.2.0
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/bin/ghostdock.js +6 -1
- package/package.json +6 -6
package/bin/ghostdock.js
CHANGED
|
@@ -17,7 +17,12 @@ try {
|
|
|
17
17
|
process.exit(1);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
// argv[0] is the command that was typed (`gdock`, or a path in npx's cache) and not the binary's
|
|
21
|
+
// path, so help and hints name it: Node keeps a bin symlink's own path in process.argv[1].
|
|
22
|
+
const result = spawnSync(binary, process.argv.slice(2), {
|
|
23
|
+
argv0: process.argv[1],
|
|
24
|
+
stdio: 'inherit',
|
|
25
|
+
});
|
|
21
26
|
if (result.error) {
|
|
22
27
|
console.error(` ✗ ${result.error.message}`);
|
|
23
28
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghostdock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"homepage": "https://github.com/brainchimps/ghostdock-cli",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@ghostdock/cli-darwin-arm64": "0.
|
|
22
|
-
"@ghostdock/cli-darwin-x64": "0.
|
|
23
|
-
"@ghostdock/cli-linux-arm64": "0.
|
|
24
|
-
"@ghostdock/cli-linux-x64": "0.
|
|
25
|
-
"@ghostdock/cli-win32-x64": "0.
|
|
21
|
+
"@ghostdock/cli-darwin-arm64": "0.2.0",
|
|
22
|
+
"@ghostdock/cli-darwin-x64": "0.2.0",
|
|
23
|
+
"@ghostdock/cli-linux-arm64": "0.2.0",
|
|
24
|
+
"@ghostdock/cli-linux-x64": "0.2.0",
|
|
25
|
+
"@ghostdock/cli-win32-x64": "0.2.0"
|
|
26
26
|
}
|
|
27
27
|
}
|