@pnpm/building.after-install 1100.0.1 → 1100.0.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.
- package/lib/extendBuildOptions.d.ts +2 -1
- package/lib/index.js +2 -1
- package/package.json +18 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config, ConfigContext } from '@pnpm/config.reader';
|
|
2
2
|
import type { LogBase } from '@pnpm/logger';
|
|
3
3
|
import type { StoreController } from '@pnpm/store.controller-types';
|
|
4
|
-
import type { Registries, RegistryConfig } from '@pnpm/types';
|
|
4
|
+
import type { Registries, RegistryConfig, SupportedArchitectures } from '@pnpm/types';
|
|
5
5
|
export type StrictBuildOptions = {
|
|
6
6
|
autoInstallPeers: boolean;
|
|
7
7
|
cacheDir: string;
|
|
@@ -45,6 +45,7 @@ export type StrictBuildOptions = {
|
|
|
45
45
|
peersSuffixMaxLength: number;
|
|
46
46
|
strictStorePkgContentCheck: boolean;
|
|
47
47
|
fetchFullMetadata?: boolean;
|
|
48
|
+
supportedArchitectures?: SupportedArchitectures;
|
|
48
49
|
} & Pick<Config, 'allowBuilds'>;
|
|
49
50
|
export type BuildOptions = Partial<StrictBuildOptions> & Pick<StrictBuildOptions, 'storeDir' | 'storeController'> & Pick<ConfigContext, 'rootProjectManifest' | 'rootProjectManifestDir'>;
|
|
50
51
|
export declare function extendBuildOptions(opts: BuildOptions): Promise<StrictBuildOptions>;
|
package/lib/index.js
CHANGED
|
@@ -185,7 +185,7 @@ function getSubgraphToBuild(step, nodesToBuildAndTransitive, opts) {
|
|
|
185
185
|
}
|
|
186
186
|
const limitLinking = pLimit(16);
|
|
187
187
|
async function _rebuild(ctx, opts) {
|
|
188
|
-
const depGraph = lockfileToDepGraph(ctx.currentLockfile);
|
|
188
|
+
const depGraph = lockfileToDepGraph(ctx.currentLockfile, opts.supportedArchitectures);
|
|
189
189
|
const depsStateCache = {};
|
|
190
190
|
const pkgsThatWereRebuilt = new Set();
|
|
191
191
|
const graph = new Map();
|
|
@@ -257,6 +257,7 @@ async function _rebuild(ctx, opts) {
|
|
|
257
257
|
if (pkgFilesIndex) {
|
|
258
258
|
sideEffectsCacheKey = calcDepState(depGraph, depsStateCache, depPath, {
|
|
259
259
|
includeDepGraphHash: true,
|
|
260
|
+
supportedArchitectures: opts.supportedArchitectures,
|
|
260
261
|
});
|
|
261
262
|
if (pkgFilesIndex.sideEffects?.has(sideEffectsCacheKey)) {
|
|
262
263
|
pkgsThatWereRebuilt.add(depPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/building.after-install",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.3",
|
|
4
4
|
"description": "Rebuild packages that are already installed by running their lifecycle scripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -30,37 +30,37 @@
|
|
|
30
30
|
"p-limit": "^7.1.0",
|
|
31
31
|
"run-groups": "^5.0.0",
|
|
32
32
|
"semver": "^7.7.2",
|
|
33
|
+
"@pnpm/bins.linker": "1100.0.2",
|
|
33
34
|
"@pnpm/building.policy": "1100.0.1",
|
|
34
|
-
"@pnpm/config.normalize-registries": "1100.0.1",
|
|
35
|
-
"@pnpm/bins.linker": "1100.0.1",
|
|
36
35
|
"@pnpm/building.pkg-requires-build": "1100.0.1",
|
|
37
|
-
"@pnpm/config.
|
|
36
|
+
"@pnpm/config.normalize-registries": "1100.0.1",
|
|
37
|
+
"@pnpm/config.reader": "1101.1.0",
|
|
38
|
+
"@pnpm/deps.graph-hasher": "1100.1.0",
|
|
39
|
+
"@pnpm/constants": "1100.0.0",
|
|
38
40
|
"@pnpm/deps.graph-sequencer": "1100.0.0",
|
|
39
41
|
"@pnpm/deps.path": "1100.0.1",
|
|
40
|
-
"@pnpm/error": "1100.0.0",
|
|
41
42
|
"@pnpm/core-loggers": "1100.0.1",
|
|
42
|
-
"@pnpm/
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/installing.context": "1100.0.1",
|
|
43
|
+
"@pnpm/error": "1100.0.0",
|
|
44
|
+
"@pnpm/exec.lifecycle": "1100.0.3",
|
|
45
|
+
"@pnpm/installing.context": "1100.0.2",
|
|
46
46
|
"@pnpm/installing.modules-yaml": "1100.0.1",
|
|
47
|
-
"@pnpm/lockfile.
|
|
48
|
-
"@pnpm/lockfile.
|
|
47
|
+
"@pnpm/lockfile.walker": "1100.0.2",
|
|
48
|
+
"@pnpm/lockfile.types": "1100.0.2",
|
|
49
49
|
"@pnpm/pkg-manifest.reader": "1100.0.1",
|
|
50
|
-
"@pnpm/store.
|
|
51
|
-
"@pnpm/
|
|
52
|
-
"@pnpm/store.
|
|
50
|
+
"@pnpm/store.cafs": "1100.0.2",
|
|
51
|
+
"@pnpm/store.connection-manager": "1100.0.3",
|
|
52
|
+
"@pnpm/store.controller-types": "1100.0.2",
|
|
53
|
+
"@pnpm/lockfile.utils": "1100.0.2",
|
|
53
54
|
"@pnpm/types": "1101.0.0",
|
|
54
|
-
"@pnpm/store.
|
|
55
|
-
"@pnpm/store.cafs": "1100.0.1"
|
|
55
|
+
"@pnpm/store.index": "1100.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0",
|
|
59
|
-
"@pnpm/worker": "^1100.0.
|
|
59
|
+
"@pnpm/worker": "^1100.0.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/semver": "7.7.1",
|
|
63
|
-
"@pnpm/building.after-install": "1100.0.
|
|
63
|
+
"@pnpm/building.after-install": "1100.0.3"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=22.13"
|