@phystack/cli 6.2.1 → 7.0.0-dev.1
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/index.js +9 -1
- package/package.json +8 -11
package/bin/index.js
CHANGED
|
@@ -65,7 +65,15 @@ try {
|
|
|
65
65
|
process.exit(1);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
// Mark this process tree as npm-managed. The future `phy update` / axoupdater
|
|
69
|
+
// command MUST early-exit when PHY_MANAGED_BY=npm and direct the user to
|
|
70
|
+
// `npm i -g @phystack/cli@dev` instead — npm installs and the cargo-dist
|
|
71
|
+
// install-receipt updater must not fight over the same binary. No Rust updater
|
|
72
|
+
// exists yet; this just plants the marker so the gate is in place when it lands.
|
|
73
|
+
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
74
|
+
stdio: 'inherit',
|
|
75
|
+
env: { ...process.env, PHY_MANAGED_BY: 'npm' },
|
|
76
|
+
});
|
|
69
77
|
|
|
70
78
|
// `spawnSync` collapses many failure modes into status === null (with `error`
|
|
71
79
|
// or `signal` set instead) — see explainSpawnFailureIfAny for the full taxonomy.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phystack/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-dev.1",
|
|
4
4
|
"description": "Phygrid CLI.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "./",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"start": "bun dist/src/index.js",
|
|
22
22
|
"dev": "bun --watch src/index.ts",
|
|
23
23
|
"lint": "tsc --noEmit",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:ci": "
|
|
24
|
+
"test": "bun test src",
|
|
25
|
+
"test:ci": "bun test src"
|
|
26
26
|
},
|
|
27
27
|
"bin": {
|
|
28
28
|
"phy": "./bin/index.js"
|
|
@@ -37,13 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"gitHead": "4b0803f6728ceb0665bd999b88ecbb31f8ea025c",
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@phystack/phy-darwin-arm64": "
|
|
41
|
-
"@phystack/phy-darwin-x64": "
|
|
42
|
-
"@phystack/phy-linux-arm64": "
|
|
43
|
-
"@phystack/phy-linux-x64": "
|
|
44
|
-
"@phystack/phy-win32-x64": "
|
|
45
|
-
"@phystack/phy-win32-arm64": "6.2.1",
|
|
46
|
-
"@phystack/phy-linux-x64-musl": "6.2.1",
|
|
47
|
-
"@phystack/phy-linux-arm64-musl": "6.2.1"
|
|
40
|
+
"@phystack/phy-darwin-arm64": "7.0.0-dev.1",
|
|
41
|
+
"@phystack/phy-darwin-x64": "7.0.0-dev.1",
|
|
42
|
+
"@phystack/phy-linux-arm64": "7.0.0-dev.1",
|
|
43
|
+
"@phystack/phy-linux-x64": "7.0.0-dev.1",
|
|
44
|
+
"@phystack/phy-win32-x64": "7.0.0-dev.1"
|
|
48
45
|
}
|
|
49
46
|
}
|