@pnpm/building.after-install 1102.0.0 → 1102.0.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.
@@ -44,6 +44,7 @@ export type StrictBuildOptions = {
44
44
  allowBuilds?: Record<string, boolean | string>;
45
45
  enableGlobalVirtualStore?: boolean;
46
46
  globalVirtualStoreDir?: string;
47
+ virtualStoreDir?: string;
47
48
  virtualStoreDirMaxLength: number;
48
49
  peersSuffixMaxLength: number;
49
50
  strictStorePkgContentCheck: boolean;
@@ -47,6 +47,16 @@ export async function extendBuildOptions(opts) {
47
47
  storeDir: defaultOpts.storeDir,
48
48
  };
49
49
  extendedOpts.registries = normalizeRegistries(extendedOpts.registries);
50
+ // Mirror extendInstallOptions: under a global virtual store, the virtual
51
+ // store directory is `<storeDir>/links`, not the per-project
52
+ // `node_modules/.pnpm`. Without this, getContext() in the build step
53
+ // defaults virtualStoreDir to the local `.pnpm` and writeModulesManifest
54
+ // overwrites the correct value the install step recorded — which makes the
55
+ // next install in that project detect a virtual-store mismatch and prompt
56
+ // to purge node_modules.
57
+ if (extendedOpts.enableGlobalVirtualStore && extendedOpts.virtualStoreDir == null) {
58
+ extendedOpts.virtualStoreDir = extendedOpts.globalVirtualStoreDir ?? path.join(extendedOpts.storeDir, 'links');
59
+ }
50
60
  return extendedOpts;
51
61
  }
52
62
  //# sourceMappingURL=extendBuildOptions.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/building.after-install",
3
- "version": "1102.0.0",
3
+ "version": "1102.0.2",
4
4
  "description": "Rebuild packages that are already installed by running their lifecycle scripts",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -11,9 +11,9 @@
11
11
  "funding": "https://opencollective.com/pnpm",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/pnpm/pnpm/tree/main/building/after-install"
14
+ "url": "https://github.com/pnpm/pnpm/tree/main/pnpm11/building/after-install"
15
15
  },
16
- "homepage": "https://github.com/pnpm/pnpm/tree/main/building/after-install#readme",
16
+ "homepage": "https://github.com/pnpm/pnpm/tree/main/pnpm11/building/after-install#readme",
17
17
  "bugs": {
18
18
  "url": "https://github.com/pnpm/pnpm/issues"
19
19
  },
@@ -33,37 +33,37 @@
33
33
  "p-limit": "^7.3.0",
34
34
  "run-groups": "^5.0.0",
35
35
  "semver": "^7.8.4",
36
+ "@pnpm/bins.linker": "1100.0.16",
36
37
  "@pnpm/building.pkg-requires-build": "1100.0.8",
37
- "@pnpm/building.policy": "1100.0.10",
38
- "@pnpm/bins.linker": "1100.0.14",
39
- "@pnpm/config.reader": "1101.9.0",
40
- "@pnpm/core-loggers": "1100.2.1",
41
- "@pnpm/deps.graph-hasher": "1100.2.5",
38
+ "@pnpm/building.policy": "1100.0.11",
42
39
  "@pnpm/config.normalize-registries": "1100.0.8",
40
+ "@pnpm/config.reader": "1101.10.1",
41
+ "@pnpm/constants": "1100.0.0",
42
+ "@pnpm/deps.graph-hasher": "1100.2.6",
43
+ "@pnpm/core-loggers": "1100.2.1",
43
44
  "@pnpm/deps.graph-sequencer": "1100.0.0",
44
45
  "@pnpm/deps.path": "1100.0.8",
45
- "@pnpm/error": "1100.0.0",
46
- "@pnpm/exec.lifecycle": "1100.0.18",
47
- "@pnpm/installing.context": "1100.0.18",
48
- "@pnpm/constants": "1100.0.0",
49
- "@pnpm/lockfile.walker": "1100.0.11",
46
+ "@pnpm/error": "1100.0.1",
47
+ "@pnpm/exec.lifecycle": "1100.1.1",
50
48
  "@pnpm/installing.modules-yaml": "1100.0.9",
51
- "@pnpm/lockfile.utils": "1100.0.13",
52
- "@pnpm/pkg-manifest.reader": "1100.0.8",
53
- "@pnpm/lockfile.types": "1100.0.11",
54
- "@pnpm/store.connection-manager": "1100.3.0",
55
- "@pnpm/store.cafs": "1100.1.10",
56
- "@pnpm/store.controller-types": "1100.1.5",
57
- "@pnpm/store.index": "1100.2.0",
58
- "@pnpm/types": "1101.3.2"
49
+ "@pnpm/installing.context": "1100.0.20",
50
+ "@pnpm/lockfile.types": "1100.0.12",
51
+ "@pnpm/lockfile.utils": "1100.1.0",
52
+ "@pnpm/lockfile.walker": "1100.0.12",
53
+ "@pnpm/pkg-manifest.reader": "1100.0.9",
54
+ "@pnpm/store.index": "1100.2.1",
55
+ "@pnpm/store.controller-types": "1100.1.6",
56
+ "@pnpm/store.connection-manager": "1100.3.2",
57
+ "@pnpm/types": "1101.3.2",
58
+ "@pnpm/store.cafs": "1100.1.11"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@pnpm/logger": "^1100.0.0",
62
- "@pnpm/worker": "^1100.2.0"
62
+ "@pnpm/worker": "^1100.2.2"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/semver": "7.7.1",
66
- "@pnpm/building.after-install": "1102.0.0"
66
+ "@pnpm/building.after-install": "1102.0.2"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=22.13"