@yarnpkg/plugin-pnp 4.0.4 → 4.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.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -37,7 +37,9 @@ async function setupScriptEnvironment(project, env, makePathWrapper) {
37
37
  // We remove the PnP hook from NODE_OPTIONS because the process can have
38
38
  // NODE_OPTIONS set while changing linkers, which affects build scripts.
39
39
  if (project.configuration.get(`nodeLinker`) !== `pnp`) {
40
- env.NODE_OPTIONS = nodeOptions;
40
+ // When set to an empty string, some tools consider it as explicitly set
41
+ // to the empty value, and do not set their own value.
42
+ env.NODE_OPTIONS = nodeOptions ? nodeOptions : undefined;
41
43
  return;
42
44
  }
43
45
  const pnpPath = (0, exports.getPnpPath)(project);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-pnp",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -8,20 +8,20 @@
8
8
  "./package.json": "./package.json"
9
9
  },
10
10
  "dependencies": {
11
- "@yarnpkg/fslib": "^3.0.2",
11
+ "@yarnpkg/fslib": "^3.1.0",
12
12
  "@yarnpkg/plugin-stage": "^4.0.0",
13
- "@yarnpkg/pnp": "^4.0.4",
13
+ "@yarnpkg/pnp": "^4.0.5",
14
14
  "clipanion": "^4.0.0-rc.2",
15
15
  "micromatch": "^4.0.2",
16
16
  "tslib": "^2.4.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@yarnpkg/cli": "^4.2.1",
19
+ "@yarnpkg/cli": "^4.2.2",
20
20
  "@yarnpkg/core": "^4.0.5"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/micromatch": "^4.0.1",
24
- "@yarnpkg/cli": "^4.2.1",
24
+ "@yarnpkg/cli": "^4.2.2",
25
25
  "@yarnpkg/core": "^4.0.5"
26
26
  },
27
27
  "repository": {