@pnpm/engine.pm.commands 1101.1.6 → 1101.1.7
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/lib/self-updater/installPnpm.js +14 -3
- package/package.json +23 -23
|
@@ -295,12 +295,23 @@ export function linkExePlatformBinary(installDir) {
|
|
|
295
295
|
const dest = path.join(exePkgDir, executable);
|
|
296
296
|
forceLink(src, dest);
|
|
297
297
|
if (platform === 'win32') {
|
|
298
|
+
// Aliases (pn / pnpx / pnx) need to be .exe hardlinks of the SEA binary,
|
|
299
|
+
// not the .cmd wrappers we ship in the tarball. cmd-shim's Bash shim for
|
|
300
|
+
// a .cmd target wraps it in `exec cmd /C ...`, and MSYS2 / Git Bash
|
|
301
|
+
// mangles `/C` into a Windows path — cmd.exe then falls into interactive
|
|
302
|
+
// mode and prints its banner instead of running the alias. .exe sources
|
|
303
|
+
// sidestep cmd-shim's wrapper. The SEA binary detects which name it was
|
|
304
|
+
// launched as via process.execPath and prepends `dlx` for pnpx / pnx.
|
|
305
|
+
// See https://github.com/pnpm/pnpm/issues/11486.
|
|
306
|
+
for (const alias of ['pn', 'pnpx', 'pnx']) {
|
|
307
|
+
forceLink(src, path.join(exePkgDir, `${alias}.exe`));
|
|
308
|
+
}
|
|
298
309
|
const exePkgJsonPath = path.join(exePkgDir, 'package.json');
|
|
299
310
|
const exePkg = JSON.parse(fs.readFileSync(exePkgJsonPath, 'utf8'));
|
|
300
311
|
exePkg.bin.pnpm = 'pnpm.exe';
|
|
301
|
-
exePkg.bin.pn = 'pn.
|
|
302
|
-
exePkg.bin.pnpx = 'pnpx.
|
|
303
|
-
exePkg.bin.pnx = 'pnx.
|
|
312
|
+
exePkg.bin.pn = 'pn.exe';
|
|
313
|
+
exePkg.bin.pnpx = 'pnpx.exe';
|
|
314
|
+
exePkg.bin.pnx = 'pnx.exe';
|
|
304
315
|
fs.writeFileSync(exePkgJsonPath, JSON.stringify(exePkg, null, 2));
|
|
305
316
|
}
|
|
306
317
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/engine.pm.commands",
|
|
3
|
-
"version": "1101.1.
|
|
3
|
+
"version": "1101.1.7",
|
|
4
4
|
"description": "pnpm commands for self-updating and setting up pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -26,46 +26,46 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@pnpm/os.env.path-extender": "^3.0.0",
|
|
28
28
|
"cross-spawn": "^7.0.6",
|
|
29
|
-
"detect-libc": "^2.
|
|
29
|
+
"detect-libc": "^2.1.2",
|
|
30
30
|
"path-name": "^1.0.0",
|
|
31
31
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
32
32
|
"render-help": "^2.0.0",
|
|
33
|
-
"semver": "^7.7.
|
|
33
|
+
"semver": "^7.7.4",
|
|
34
34
|
"symlink-dir": "^10.0.1",
|
|
35
|
+
"@pnpm/bins.linker": "1100.0.3",
|
|
36
|
+
"@pnpm/cli.meta": "1100.0.2",
|
|
35
37
|
"@pnpm/building.policy": "1100.0.3",
|
|
36
|
-
"@pnpm/
|
|
38
|
+
"@pnpm/cli.utils": "1101.0.2",
|
|
39
|
+
"@pnpm/config.reader": "1101.2.1",
|
|
40
|
+
"@pnpm/deps.graph-hasher": "1100.1.3",
|
|
37
41
|
"@pnpm/error": "1100.0.0",
|
|
38
|
-
"@pnpm/
|
|
39
|
-
"@pnpm/bins.linker": "1100.0.3",
|
|
42
|
+
"@pnpm/global.commands": "1100.0.12",
|
|
40
43
|
"@pnpm/global.packages": "1100.0.2",
|
|
41
|
-
"@pnpm/installing.
|
|
42
|
-
"@pnpm/installing.
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/lockfile.
|
|
46
|
-
"@pnpm/
|
|
47
|
-
"@pnpm/
|
|
48
|
-
"@pnpm/store.
|
|
49
|
-
"@pnpm/
|
|
50
|
-
"@pnpm/store.connection-manager": "1100.0.10",
|
|
51
|
-
"@pnpm/cli.meta": "1100.0.2",
|
|
52
|
-
"@pnpm/types": "1101.0.0",
|
|
44
|
+
"@pnpm/installing.client": "1100.0.10",
|
|
45
|
+
"@pnpm/installing.deps-restorer": "1101.0.6",
|
|
46
|
+
"@pnpm/installing.env-installer": "1101.0.5",
|
|
47
|
+
"@pnpm/lockfile.fs": "1100.0.5",
|
|
48
|
+
"@pnpm/lockfile.types": "1100.0.4",
|
|
49
|
+
"@pnpm/resolving.npm-resolver": "1101.0.2",
|
|
50
|
+
"@pnpm/shell.path": "1100.0.1",
|
|
51
|
+
"@pnpm/store.connection-manager": "1100.0.11",
|
|
52
|
+
"@pnpm/store.controller": "1101.0.3",
|
|
53
53
|
"@pnpm/workspace.project-manifest-reader": "1100.0.3",
|
|
54
|
-
"@pnpm/
|
|
54
|
+
"@pnpm/types": "1101.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@pnpm/logger": "
|
|
57
|
+
"@pnpm/logger": "^1001.0.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@jest/globals": "30.3.0",
|
|
61
61
|
"@types/cross-spawn": "^6.0.6",
|
|
62
62
|
"@types/ramda": "0.31.1",
|
|
63
63
|
"@types/semver": "7.7.1",
|
|
64
|
-
"@pnpm/error": "1100.0.0",
|
|
65
64
|
"@pnpm/constants": "1100.0.0",
|
|
65
|
+
"@pnpm/engine.pm.commands": "1101.1.7",
|
|
66
|
+
"@pnpm/error": "1100.0.0",
|
|
66
67
|
"@pnpm/logger": "1100.0.0",
|
|
67
|
-
"@pnpm/
|
|
68
|
-
"@pnpm/prepare": "1100.0.4",
|
|
68
|
+
"@pnpm/prepare": "1100.0.5",
|
|
69
69
|
"@pnpm/testing.mock-agent": "1100.0.2"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|