@bitmagic/cli 0.1.55-dev.1 → 0.1.55-dev.2
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/README.md +2 -1
- package/dist/update/self-install.d.ts +15 -6
- package/dist/update/self-install.js +56 -15
- package/dist/update/self-install.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -120,7 +120,8 @@ apiUrl=http://localhost:3102
|
|
|
120
120
|
`bitmagic self-update` works inside this setup unchanged: it reinstalls into the root the
|
|
121
121
|
`bitmagic` you just ran came from, with the same `--global-dir` and `--global-bin-dir`, so updating
|
|
122
122
|
from `dev-games/` cannot disturb the prod root. (Running `pnpm add -g` by hand would, unless you
|
|
123
|
-
repeat both flags.)
|
|
123
|
+
repeat both flags.) It finds a `pnpm` to run on disk rather than on `PATH` — neither root has one
|
|
124
|
+
beside it, and both flags pin where the install lands, so any `pnpm` is the right one.
|
|
124
125
|
|
|
125
126
|
`direnv allow` each, and both halves are right in each tree:
|
|
126
127
|
|
|
@@ -112,14 +112,23 @@ export interface ManagerCommand {
|
|
|
112
112
|
*/
|
|
113
113
|
export declare function npmCommand(execPath: string, installPrefix: string | undefined, exists?: Exists): ManagerCommand;
|
|
114
114
|
/**
|
|
115
|
-
* pnpm, which — unlike npm — is not bundled with node and so cannot be
|
|
115
|
+
* pnpm, which — unlike npm — is not bundled with node and so cannot be derived from `execPath`.
|
|
116
116
|
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
117
|
+
* Searching this widely is safe in a way the npm equivalent is not, and the difference is worth
|
|
118
|
+
* stating: `installArgs` pins pnpm's target with `--global-dir` and `--global-bin-dir`, so WHICH
|
|
119
|
+
* pnpm runs cannot change WHERE it writes. Any pnpm on the disk is therefore a correct one, and
|
|
120
|
+
* the only wrong answer is not finding one — which is why the search widens rather than stopping
|
|
121
|
+
* at the two directories that imply the install.
|
|
122
|
+
*
|
|
123
|
+
* The order still runs from most-implied to least: the bin directory this install's own
|
|
124
|
+
* `bitmagic` came from, then pnpm's default root beside the global dir, then the places a pnpm
|
|
125
|
+
* lives on a machine where it was installed independently of either.
|
|
126
|
+
*
|
|
127
|
+
* Failing all of them the name is left to PATH, flagged — and a shell with no pnpm then gets a
|
|
128
|
+
* clear refusal naming the resolved global dir, which is still strictly better than an install
|
|
129
|
+
* silently landing elsewhere.
|
|
121
130
|
*/
|
|
122
|
-
export declare function pnpmCommand(globalDir: string, binDir: string | undefined, exists?: Exists): ManagerCommand;
|
|
131
|
+
export declare function pnpmCommand(globalDir: string, binDir: string | undefined, exists?: Exists, execPath?: string): ManagerCommand;
|
|
123
132
|
/** The manager that owns `location`, resolved without PATH wherever that is possible. */
|
|
124
133
|
export declare function managerFor(location: UpdatableLocation, execPath: string, exists?: Exists): ManagerCommand;
|
|
125
134
|
/**
|
|
@@ -74,26 +74,43 @@ export function classifyInstall(packageDir, exists = realExists) {
|
|
|
74
74
|
return { kind: 'unknown', packageDir };
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* pnpm's global store
|
|
77
|
+
* pnpm's global store, in either of the two places pnpm has put it.
|
|
78
78
|
*
|
|
79
|
-
*
|
|
79
|
+
* pnpm 9 and earlier nested the virtual store inside the links directory —
|
|
80
|
+
* `<globalDir>/<n>/node_modules/.pnpm/@bitmagic+cli@<v>/node_modules/@bitmagic/cli`. pnpm 10
|
|
81
|
+
* writes global installs with `virtualStoreDir: ../.pnpm`, hoisting the store to a SIBLING of
|
|
82
|
+
* `node_modules`: `<globalDir>/<n>/.pnpm/@bitmagic+cli@<v>/node_modules/@bitmagic/cli`. Reading
|
|
83
|
+
* only the older shape is what made a perfectly ordinary `pnpm add -g` install — including the
|
|
84
|
+
* README's own two-root recipe, run with any current pnpm — come back as `unknown` and get
|
|
85
|
+
* refused. The `node_modules` segment is therefore optional here, and everything downstream is
|
|
86
|
+
* derived from the numbered directory rather than from the store's depth.
|
|
87
|
+
*
|
|
88
|
+
* That numbered directory is pnpm's store-layout version, and requiring it is what separates a
|
|
80
89
|
* GLOBAL pnpm install from a project-local one — a `.pnpm` directory inside a project's
|
|
81
90
|
* node_modules has no such parent, and reinstalling globally on its behalf would be wrong.
|
|
82
91
|
*/
|
|
83
92
|
function classifyPnpm(segments) {
|
|
84
93
|
const store = segments.indexOf('.pnpm');
|
|
85
|
-
if (store <
|
|
94
|
+
if (store < 1)
|
|
95
|
+
return null;
|
|
96
|
+
// pnpm 10 hoists the store out of `node_modules`; pnpm 9 kept it inside. Skip the segment when
|
|
97
|
+
// it is there, so the layout version is found from either depth.
|
|
98
|
+
const layout = segments[store - 1] === 'node_modules' ? store - 2 : store - 1;
|
|
99
|
+
if (layout < 1)
|
|
86
100
|
return null;
|
|
87
|
-
if (segments[
|
|
101
|
+
if (!DIGITS.test(segments[layout] ?? ''))
|
|
88
102
|
return null;
|
|
89
|
-
|
|
103
|
+
const globalDir = segments.slice(0, layout).join(path.sep);
|
|
104
|
+
if (globalDir === '')
|
|
90
105
|
return null;
|
|
91
|
-
|
|
106
|
+
// Always the links directory beside the layout version, never the store — the same distinction
|
|
107
|
+
// `verifyDir` exists for, and now the only thing that varied between the two layouts.
|
|
108
|
+
const modulesRoot = path.join(segments.slice(0, layout + 1).join(path.sep), 'node_modules');
|
|
92
109
|
return {
|
|
93
110
|
kind: 'pnpm-global',
|
|
94
111
|
verifyDir: path.join(modulesRoot, '@bitmagic', 'cli'),
|
|
95
112
|
modulesRoot,
|
|
96
|
-
globalDir
|
|
113
|
+
globalDir,
|
|
97
114
|
};
|
|
98
115
|
}
|
|
99
116
|
/**
|
|
@@ -196,15 +213,39 @@ export function npmCommand(execPath, installPrefix, exists = realExists) {
|
|
|
196
213
|
return { command: 'npm', leadingArgs: [], fromPath: true };
|
|
197
214
|
}
|
|
198
215
|
/**
|
|
199
|
-
*
|
|
216
|
+
* Where a `pnpm` executable sits on a machine that did not put it beside its own global dir.
|
|
217
|
+
*
|
|
218
|
+
* `dirname(execPath)` is node's own bin directory, which is where corepack's shim and a plain
|
|
219
|
+
* `npm i -g pnpm` both land — so under nvm it is the same prefix this CLI came from. The two
|
|
220
|
+
* Homebrew prefixes are the mac reality behind the bug that prompted this: node from nvm, pnpm
|
|
221
|
+
* from Homebrew, and therefore a pnpm that is beside neither the install nor the node.
|
|
222
|
+
*/
|
|
223
|
+
function pnpmSearchDirs(execPath) {
|
|
224
|
+
return [
|
|
225
|
+
...(execPath === undefined ? [] : [path.dirname(execPath)]),
|
|
226
|
+
'/opt/homebrew/bin',
|
|
227
|
+
'/usr/local/bin',
|
|
228
|
+
];
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* pnpm, which — unlike npm — is not bundled with node and so cannot be derived from `execPath`.
|
|
232
|
+
*
|
|
233
|
+
* Searching this widely is safe in a way the npm equivalent is not, and the difference is worth
|
|
234
|
+
* stating: `installArgs` pins pnpm's target with `--global-dir` and `--global-bin-dir`, so WHICH
|
|
235
|
+
* pnpm runs cannot change WHERE it writes. Any pnpm on the disk is therefore a correct one, and
|
|
236
|
+
* the only wrong answer is not finding one — which is why the search widens rather than stopping
|
|
237
|
+
* at the two directories that imply the install.
|
|
238
|
+
*
|
|
239
|
+
* The order still runs from most-implied to least: the bin directory this install's own
|
|
240
|
+
* `bitmagic` came from, then pnpm's default root beside the global dir, then the places a pnpm
|
|
241
|
+
* lives on a machine where it was installed independently of either.
|
|
200
242
|
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
* global dir, which is still strictly better than an install silently landing elsewhere.
|
|
243
|
+
* Failing all of them the name is left to PATH, flagged — and a shell with no pnpm then gets a
|
|
244
|
+
* clear refusal naming the resolved global dir, which is still strictly better than an install
|
|
245
|
+
* silently landing elsewhere.
|
|
205
246
|
*/
|
|
206
|
-
export function pnpmCommand(globalDir, binDir, exists = realExists) {
|
|
207
|
-
const candidates = [binDir, path.dirname(globalDir)].filter((dir) => dir !== undefined);
|
|
247
|
+
export function pnpmCommand(globalDir, binDir, exists = realExists, execPath) {
|
|
248
|
+
const candidates = [binDir, path.dirname(globalDir), ...pnpmSearchDirs(execPath)].filter((dir) => dir !== undefined);
|
|
208
249
|
for (const dir of candidates) {
|
|
209
250
|
const binary = path.join(dir, 'pnpm');
|
|
210
251
|
if (exists(binary))
|
|
@@ -216,7 +257,7 @@ export function pnpmCommand(globalDir, binDir, exists = realExists) {
|
|
|
216
257
|
export function managerFor(location, execPath, exists = realExists) {
|
|
217
258
|
return location.kind === 'npm-global'
|
|
218
259
|
? npmCommand(execPath, location.prefix, exists)
|
|
219
|
-
: pnpmCommand(location.globalDir, location.binDir, exists);
|
|
260
|
+
: pnpmCommand(location.globalDir, location.binDir, exists, execPath);
|
|
220
261
|
}
|
|
221
262
|
/**
|
|
222
263
|
* Install `spec` into exactly this location.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-install.js","sourceRoot":"","sources":["../../src/update/self-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,gDAAgD;AAChD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAK5C,MAAM,UAAU,GAAW,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAgDnE,MAAM,UAAU,WAAW,CAAC,QAAyB;IACnD,OAAO,QAAQ,CAAC,IAAI,KAAK,YAAY,IAAI,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC;AAC3E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB;IAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC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CAAC,CAAC;AAChF,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,cAAc,CAAC,SAAiB,EAAE,SAAiB,UAAU;IAC3E,OAAO,eAAe,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;AAC5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmagic/cli",
|
|
3
|
-
"version": "0.1.55-dev.
|
|
3
|
+
"version": "0.1.55-dev.2",
|
|
4
4
|
"description": "Build Bitmagic games from your own agent tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Bitmagic Oy",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"fflate": "^0.8.2",
|
|
24
24
|
"playwright-core": "^1.59.1",
|
|
25
25
|
"tar": "^7.4.3",
|
|
26
|
-
"@bitmagic/asset-core": "0.2.10-dev.
|
|
27
|
-
"@bitmagic/animation-forger": "0.1.10-dev.
|
|
28
|
-
"@bitmagic/world-forger": "0.1.15-dev.
|
|
26
|
+
"@bitmagic/asset-core": "0.2.10-dev.2",
|
|
27
|
+
"@bitmagic/animation-forger": "0.1.10-dev.2",
|
|
28
|
+
"@bitmagic/world-forger": "0.1.15-dev.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^9.38.0",
|