@pnpm/config 20.0.0 → 20.1.0
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/Config.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export interface Config {
|
|
|
152
152
|
workspaceRoot: boolean;
|
|
153
153
|
testPattern?: string[];
|
|
154
154
|
changedFilesIgnorePattern?: string[];
|
|
155
|
-
rootProjectManifestDir
|
|
155
|
+
rootProjectManifestDir: string;
|
|
156
156
|
rootProjectManifest?: ProjectManifest;
|
|
157
157
|
userConfig: Record<string, string>;
|
|
158
158
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AllowedDeprecatedVersions, type PackageExtension, type PeerDependencyRules, type ProjectManifest } from '@pnpm/types';
|
|
1
|
+
import { type SupportedArchitectures, type AllowedDeprecatedVersions, type PackageExtension, type PeerDependencyRules, type ProjectManifest } from '@pnpm/types';
|
|
2
2
|
export interface OptionsFromRootManifest {
|
|
3
3
|
allowedDeprecatedVersions?: AllowedDeprecatedVersions;
|
|
4
4
|
allowNonAppliedPatches?: boolean;
|
|
@@ -9,5 +9,6 @@ export interface OptionsFromRootManifest {
|
|
|
9
9
|
packageExtensions?: Record<string, PackageExtension>;
|
|
10
10
|
patchedDependencies?: Record<string, string>;
|
|
11
11
|
peerDependencyRules?: PeerDependencyRules;
|
|
12
|
+
supportedArchitectures?: SupportedArchitectures;
|
|
12
13
|
}
|
|
13
14
|
export declare function getOptionsFromRootManifest(manifestDir: string, manifest: ProjectManifest): OptionsFromRootManifest;
|
|
@@ -31,6 +31,11 @@ function getOptionsFromRootManifest(manifestDir, manifest) {
|
|
|
31
31
|
patchedDependencies[dep] = path_1.default.join(manifestDir, patchFile);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
const supportedArchitectures = {
|
|
35
|
+
os: manifest.pnpm?.supportedArchitectures?.os ?? ['current'],
|
|
36
|
+
cpu: manifest.pnpm?.supportedArchitectures?.cpu ?? ['current'],
|
|
37
|
+
libc: manifest.pnpm?.supportedArchitectures?.libc ?? ['current'],
|
|
38
|
+
};
|
|
34
39
|
const settings = {
|
|
35
40
|
allowedDeprecatedVersions,
|
|
36
41
|
allowNonAppliedPatches,
|
|
@@ -39,6 +44,7 @@ function getOptionsFromRootManifest(manifestDir, manifest) {
|
|
|
39
44
|
packageExtensions,
|
|
40
45
|
peerDependencyRules,
|
|
41
46
|
patchedDependencies,
|
|
47
|
+
supportedArchitectures,
|
|
42
48
|
};
|
|
43
49
|
if (onlyBuiltDependencies) {
|
|
44
50
|
settings.onlyBuiltDependencies = onlyBuiltDependencies;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOptionsFromRootManifest.js","sourceRoot":"","sources":["../src/getOptionsFromRootManifest.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AACvB,uCAAuC;
|
|
1
|
+
{"version":3,"file":"getOptionsFromRootManifest.js","sourceRoot":"","sources":["../src/getOptionsFromRootManifest.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AACvB,uCAAuC;AAQvC,wDAAqC;AAerC,SAAgB,0BAA0B,CAAE,WAAmB,EAAE,QAAyB;IACxF,qDAAqD;IACrD,iGAAiG;IACjG,mCAAmC;IACnC,MAAM,SAAS,GAAG,IAAA,aAAS,EACzB,+BAA+B,CAAC,QAAQ,CAAC,EACzC;QACE,GAAG,QAAQ,CAAC,WAAW;QACvB,GAAG,QAAQ,CAAC,IAAI,EAAE,SAAS;KAC5B,CACF,CAAA;IACD,MAAM,sBAAsB,GAAG,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;IACpE,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAA;IAClE,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAA;IAC1E,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;IAC1D,MAAM,mB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AyB,CAAC,CAAA;KACvF;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC;AAlDD,gEAkDC;AAED,SAAS,+BAA+B,CAAE,QAAyB;IACjE,MAAM,OAAO,GAAG;QACd,GAAG,QAAQ,CAAC,eAAe;QAC3B,GAAG,QAAQ,CAAC,YAAY;QACxB,GAAG,QAAQ,CAAC,oBAAoB;KACjC,CAAA;IACD,OAAO,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AACrD,CAAC;AAED,SAAS,wBAAwB,CAAE,GAA2B,EAAE,IAAY;IAC1E,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IACnC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACpC,MAAM,OAAO,GAAG,GAAG,CAAC,cAAc,CAAC,CAAA;IACnC,IAAI,OAAO;QAAE,OAAO,OAAO,CAAA;IAC3B,MAAM,IAAI,iBAAS,CACjB,iCAAiC,EACjC,0BAA0B,IAAI,iEAAiE,cAAc,IAAI,CAClH,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/config",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "Gets configuration options for pnpm",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"@pnpm/error": "5.0.2",
|
|
43
43
|
"@pnpm/git-utils": "1.0.0",
|
|
44
44
|
"@pnpm/matcher": "5.0.0",
|
|
45
|
-
"@pnpm/pnpmfile": "5.0.
|
|
46
|
-
"@pnpm/read-project-manifest": "5.0.
|
|
47
|
-
"@pnpm/types": "9.
|
|
45
|
+
"@pnpm/pnpmfile": "5.0.15",
|
|
46
|
+
"@pnpm/read-project-manifest": "5.0.8",
|
|
47
|
+
"@pnpm/types": "9.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/is-windows": "^1.0.0",
|
|
51
51
|
"@types/ramda": "0.28.20",
|
|
52
52
|
"@types/which": "^2.0.2",
|
|
53
53
|
"symlink-dir": "^5.2.0",
|
|
54
|
-
"@pnpm/config": "20.
|
|
55
|
-
"@pnpm/prepare": "0.0.
|
|
56
|
-
"@pnpm/test-fixtures": "0.1.
|
|
54
|
+
"@pnpm/config": "20.1.0",
|
|
55
|
+
"@pnpm/prepare": "0.0.83",
|
|
56
|
+
"@pnpm/test-fixtures": "0.1.13"
|
|
57
57
|
},
|
|
58
58
|
"funding": "https://opencollective.com/pnpm",
|
|
59
59
|
"exports": {
|