pnpm 7.29.2 → 7.29.3

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.
@@ -204,7 +204,7 @@ packageManager: pnpm@7.24.2
204
204
  pendingBuilds:
205
205
  - /node-gyp/9.3.1
206
206
  - /encoding/0.1.13
207
- prunedAt: Tue, 14 Mar 2023 02:25:17 GMT
207
+ prunedAt: Wed, 15 Mar 2023 10:25:00 GMT
208
208
  publicHoistPattern:
209
209
  - '*eslint*'
210
210
  - '*prettier*'
package/dist/pnpm.cjs CHANGED
@@ -3244,7 +3244,7 @@ var require_lib4 = __commonJS({
3244
3244
  var load_json_file_1 = __importDefault3(require_load_json_file());
3245
3245
  var defaultManifest = {
3246
3246
  name: "pnpm" != null && true ? "pnpm" : "pnpm",
3247
- version: "7.29.2" != null && true ? "7.29.2" : "0.0.0"
3247
+ version: "7.29.3" != null && true ? "7.29.3" : "0.0.0"
3248
3248
  };
3249
3249
  var pkgJson;
3250
3250
  if (require.main == null) {
@@ -25427,7 +25427,7 @@ var require_lib21 = __commonJS({
25427
25427
  color: "auto",
25428
25428
  "dedupe-peer-dependents": false,
25429
25429
  "enable-modules-dir": true,
25430
- "extend-node-path": false,
25430
+ "extend-node-path": true,
25431
25431
  "fetch-retries": 2,
25432
25432
  "fetch-retry-factor": 10,
25433
25433
  "fetch-retry-maxtimeout": 6e4,
@@ -125965,6 +125965,7 @@ var require_lib108 = __commonJS({
125965
125965
  Object.defineProperty(exports2, "__esModule", { value: true });
125966
125966
  exports2.linkBinsOfPackages = exports2.linkBins = void 0;
125967
125967
  var fs_1 = require("fs");
125968
+ var module_1 = __importDefault3(require("module"));
125968
125969
  var path_1 = __importDefault3(require("path"));
125969
125970
  var error_1 = require_lib8();
125970
125971
  var logger_1 = require_lib6();
@@ -126101,9 +126102,19 @@ var require_lib108 = __commonJS({
126101
126102
  return;
126102
126103
  }
126103
126104
  try {
126105
+ let nodePath;
126106
+ if (opts?.extraNodePaths?.length) {
126107
+ nodePath = [];
126108
+ for (const modulesPath of await getBinNodePaths(cmd.path)) {
126109
+ if (opts.extraNodePaths.includes(modulesPath))
126110
+ break;
126111
+ nodePath.push(modulesPath);
126112
+ }
126113
+ nodePath.push(...opts.extraNodePaths);
126114
+ }
126104
126115
  await (0, cmd_shim_1.default)(cmd.path, externalBinPath, {
126105
126116
  createPwshFile: cmd.makePowerShellShim,
126106
- nodePath: opts?.extraNodePaths,
126117
+ nodePath,
126107
126118
  nodeExecPath: cmd.nodeExecPath
126108
126119
  });
126109
126120
  } catch (err) {
@@ -126124,6 +126135,18 @@ var require_lib108 = __commonJS({
126124
126135
  }
126125
126136
  return cmdExtension ?? ".exe";
126126
126137
  }
126138
+ async function getBinNodePaths(target) {
126139
+ const targetDir = path_1.default.dirname(target);
126140
+ try {
126141
+ const targetRealPath = await fs_1.promises.realpath(targetDir);
126142
+ return module_1.default["_nodeModulePaths"](targetRealPath);
126143
+ } catch (err) {
126144
+ if (err.code !== "ENOENT") {
126145
+ throw err;
126146
+ }
126147
+ return module_1.default["_nodeModulePaths"](targetDir);
126148
+ }
126149
+ }
126127
126150
  async function safeReadPkgJson(pkgDir) {
126128
126151
  try {
126129
126152
  return await (0, read_package_json_1.readPackageJsonFromDir)(pkgDir);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pnpm",
3
3
  "description": "Fast, disk space efficient package manager",
4
- "version": "7.29.2",
4
+ "version": "7.29.3",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"