@pnpm/exe 11.0.3 → 11.0.5
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/pnpm.mjs +40074 -39890
- package/dist/worker.js +6 -6
- package/package.json +9 -10
- package/setup.js +39 -1
package/dist/worker.js
CHANGED
|
@@ -6469,9 +6469,9 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
6469
6469
|
}
|
|
6470
6470
|
});
|
|
6471
6471
|
|
|
6472
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/
|
|
6472
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/d6336ce79f945cdf8da931bf1fe1eab07de5324f88e43a871c723e26d833f051/node_modules/msgpackr-extract/index.js
|
|
6473
6473
|
var require_msgpackr_extract = __commonJS({
|
|
6474
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/
|
|
6474
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr-extract/3.0.3/d6336ce79f945cdf8da931bf1fe1eab07de5324f88e43a871c723e26d833f051/node_modules/msgpackr-extract/index.js"(exports, module) {
|
|
6475
6475
|
module.exports = require_node_gyp_build_optional_packages()(__dirname);
|
|
6476
6476
|
}
|
|
6477
6477
|
});
|
|
@@ -7681,7 +7681,7 @@ function createCafsStore(storeDir, opts2) {
|
|
|
7681
7681
|
import fs11 from "node:fs";
|
|
7682
7682
|
import { createRequire as createRequire2 } from "node:module";
|
|
7683
7683
|
|
|
7684
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
7684
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/2918100b6a392ecb2828842b3e4ff8b881a5bbeb14d471297b65d8a74fd54701/node_modules/msgpackr/unpack.js
|
|
7685
7685
|
var decoder;
|
|
7686
7686
|
try {
|
|
7687
7687
|
decoder = new TextDecoder();
|
|
@@ -8798,7 +8798,7 @@ function setReadStruct(updatedReadStruct, loadedStructs, saveState3) {
|
|
|
8798
8798
|
onSaveState = saveState3;
|
|
8799
8799
|
}
|
|
8800
8800
|
|
|
8801
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
8801
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/2918100b6a392ecb2828842b3e4ff8b881a5bbeb14d471297b65d8a74fd54701/node_modules/msgpackr/pack.js
|
|
8802
8802
|
var textEncoder;
|
|
8803
8803
|
try {
|
|
8804
8804
|
textEncoder = new TextEncoder();
|
|
@@ -9864,7 +9864,7 @@ var REUSE_BUFFER_MODE = 512;
|
|
|
9864
9864
|
var RESET_BUFFER_MODE = 1024;
|
|
9865
9865
|
var RESERVE_START_SPACE = 2048;
|
|
9866
9866
|
|
|
9867
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
9867
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/2918100b6a392ecb2828842b3e4ff8b881a5bbeb14d471297b65d8a74fd54701/node_modules/msgpackr/struct.js
|
|
9868
9868
|
var ASCII = 3;
|
|
9869
9869
|
var NUMBER = 0;
|
|
9870
9870
|
var UTF8 = 2;
|
|
@@ -10579,7 +10579,7 @@ function prepareStructures2(structures, packr2) {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
setReadStruct(readStruct2, onLoadedStructures2, saveState2);
|
|
10581
10581
|
|
|
10582
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/
|
|
10582
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/2918100b6a392ecb2828842b3e4ff8b881a5bbeb14d471297b65d8a74fd54701/node_modules/msgpackr/node-index.js
|
|
10583
10583
|
import { createRequire } from "module";
|
|
10584
10584
|
var nativeAccelerationDisabled = process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED.toLowerCase() === "true";
|
|
10585
10585
|
if (!nativeAccelerationDisabled) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/exe",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.5",
|
|
4
4
|
"description": "Fast, disk space efficient package manager",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -32,19 +32,18 @@
|
|
|
32
32
|
"detect-libc": "^2.0.3"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@pnpm/linux-arm64": "11.0.
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/linuxstatic-x64": "11.0.
|
|
38
|
-
"@pnpm/macos-arm64": "11.0.
|
|
39
|
-
"@pnpm/
|
|
40
|
-
"@pnpm/
|
|
41
|
-
"@pnpm/win-x64": "11.0.
|
|
42
|
-
"@pnpm/linuxstatic-arm64": "11.0.3"
|
|
35
|
+
"@pnpm/linux-arm64": "11.0.5",
|
|
36
|
+
"@pnpm/linuxstatic-arm64": "11.0.5",
|
|
37
|
+
"@pnpm/linuxstatic-x64": "11.0.5",
|
|
38
|
+
"@pnpm/macos-arm64": "11.0.5",
|
|
39
|
+
"@pnpm/win-arm64": "11.0.5",
|
|
40
|
+
"@pnpm/linux-x64": "11.0.5",
|
|
41
|
+
"@pnpm/win-x64": "11.0.5"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@jest/globals": "30.3.0",
|
|
46
45
|
"execa": "npm:safe-execa@0.3.0",
|
|
47
|
-
"@pnpm/exe": "11.0.
|
|
46
|
+
"@pnpm/exe": "11.0.5",
|
|
48
47
|
"@pnpm/jest-config": "1100.0.4"
|
|
49
48
|
},
|
|
50
49
|
"jest": {
|
package/setup.js
CHANGED
|
@@ -14,7 +14,45 @@ import { exePlatformPkgName } from './platform-pkg-name.js'
|
|
|
14
14
|
// without triggering the side effects of this preinstall script.
|
|
15
15
|
const platform = process.platform
|
|
16
16
|
const pkgName = exePlatformPkgName(platform, process.arch, familySync())
|
|
17
|
-
|
|
17
|
+
let pkgJson
|
|
18
|
+
try {
|
|
19
|
+
pkgJson = fileURLToPath(import.meta.resolve(`${pkgName}/package.json`))
|
|
20
|
+
} catch (err) {
|
|
21
|
+
// Only treat ERR_MODULE_NOT_FOUND as "platform package not installed".
|
|
22
|
+
// Anything else (resolver bug, broken Node, etc.) should surface as-is.
|
|
23
|
+
if (err?.code !== 'ERR_MODULE_NOT_FOUND') throw err
|
|
24
|
+
|
|
25
|
+
// The platform package isn't on disk. The only currently-published host
|
|
26
|
+
// for which @pnpm/exe deliberately omits a binary is darwin-x64 (Intel
|
|
27
|
+
// Mac): Node.js SEA injection corrupts the binary on x64 Mach-O — see
|
|
28
|
+
// https://github.com/pnpm/pnpm/issues/11423 and upstream
|
|
29
|
+
// https://github.com/nodejs/node/issues/62893.
|
|
30
|
+
//
|
|
31
|
+
// Inside the pnpm workspace itself there's no platform package linked
|
|
32
|
+
// either — it would be `@pnpm/macos-x64` for darwin-x64 and we removed
|
|
33
|
+
// that workspace package entirely. We don't want a contributor on Intel
|
|
34
|
+
// hardware blocked from `pnpm install`-ing the repo to work on
|
|
35
|
+
// unrelated parts of pnpm, so skip silently when this script runs as
|
|
36
|
+
// the workspace's own @pnpm/exe (whose path always ends in
|
|
37
|
+
// pnpm/artifacts/exe). A path-suffix check is more precise than walking
|
|
38
|
+
// up for `pnpm-workspace.yaml` — that walk can false-positive if the
|
|
39
|
+
// user's globally-installed @pnpm/exe happens to live anywhere under
|
|
40
|
+
// an unrelated pnpm workspace tree.
|
|
41
|
+
if (import.meta.dirname.endsWith(path.join('pnpm', 'artifacts', 'exe'))) {
|
|
42
|
+
process.exit(0)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (platform === 'darwin' && process.arch === 'x64') {
|
|
46
|
+
console.error(
|
|
47
|
+
'@pnpm/exe does not ship a working binary for Intel macOS (darwin-x64) due to an upstream Node.js SEA bug.\n' +
|
|
48
|
+
'See https://github.com/pnpm/pnpm/issues/11423 and https://github.com/nodejs/node/issues/62893.\n' +
|
|
49
|
+
'Workaround: install pnpm via `npm install -g pnpm` (uses your system Node.js, no SEA), or use pnpm 10.x.'
|
|
50
|
+
)
|
|
51
|
+
} else {
|
|
52
|
+
console.error(`Could not find platform package "${pkgName}" — @pnpm/exe does not ship a binary for ${platform}-${process.arch}.`)
|
|
53
|
+
}
|
|
54
|
+
process.exit(1)
|
|
55
|
+
}
|
|
18
56
|
const executable = platform === 'win32' ? 'pnpm.exe' : 'pnpm'
|
|
19
57
|
const platformDir = path.dirname(pkgJson)
|
|
20
58
|
const bin = path.resolve(platformDir, executable)
|