@pnpm/core 2.7.5 → 2.7.8
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.
|
@@ -24,7 +24,14 @@ function default_1(peerDependencyRules) {
|
|
|
24
24
|
pkg.peerDependencies[peerName] = '*';
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
|
-
|
|
27
|
+
const allowedVersions = parseVersions(peerDependencyRules.allowedVersions[peerName]);
|
|
28
|
+
const currentVersions = parseVersions(pkg.peerDependencies[peerName]);
|
|
29
|
+
allowedVersions.forEach(allowedVersion => {
|
|
30
|
+
if (!currentVersions.includes(allowedVersion)) {
|
|
31
|
+
currentVersions.push(allowedVersion);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
pkg.peerDependencies[peerName] = currentVersions.join(' || ');
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
}
|
|
@@ -32,4 +39,7 @@ function default_1(peerDependencyRules) {
|
|
|
32
39
|
});
|
|
33
40
|
}
|
|
34
41
|
exports.default = default_1;
|
|
42
|
+
function parseVersions(versions) {
|
|
43
|
+
return versions.split('||').map(v => v.trim());
|
|
44
|
+
}
|
|
35
45
|
//# sourceMappingURL=createPeerDependencyPatcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPeerDependencyPatcher.js","sourceRoot":"","sources":["../../src/install/createPeerDependencyPatcher.ts"],"names":[],"mappings":";;;;;AACA,gEAAuC;AAEvC,mBACE,mBAAwC;;IAExC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,MAAA,mBAAmB,CAAC,aAAa,mCAAI,EAAE,CAAC,CAAA;IACtE,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;;QACd,IAAI,IAAA,iBAAO,EAAC,GAAG,CAAC,gBAAgB,CAAC;YAAE,OAAO,GAAG,CAAA;QAC7C,KAAK,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/core",
|
|
3
3
|
"description": "Fast, disk space efficient installation engine",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.8",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
7
7
|
},
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"@pnpm/error": "2.1.0",
|
|
23
23
|
"@pnpm/filter-lockfile": "5.0.20",
|
|
24
24
|
"@pnpm/get-context": "5.3.8",
|
|
25
|
-
"@pnpm/headless": "17.3.
|
|
25
|
+
"@pnpm/headless": "17.3.5",
|
|
26
26
|
"@pnpm/hoist": "5.2.16",
|
|
27
27
|
"@pnpm/lifecycle": "12.1.7",
|
|
28
28
|
"@pnpm/link-bins": "6.2.13",
|
|
29
29
|
"@pnpm/lockfile-file": "4.3.1",
|
|
30
|
-
"@pnpm/lockfile-to-pnp": "0.4.
|
|
30
|
+
"@pnpm/lockfile-to-pnp": "0.4.49",
|
|
31
31
|
"@pnpm/lockfile-utils": "3.2.2",
|
|
32
32
|
"@pnpm/lockfile-walker": "4.0.15",
|
|
33
33
|
"@pnpm/manifest-utils": "2.1.10",
|
|
34
34
|
"@pnpm/modules-cleaner": "11.0.24",
|
|
35
35
|
"@pnpm/modules-yaml": "9.1.1",
|
|
36
36
|
"@pnpm/normalize-registries": "2.0.13",
|
|
37
|
-
"@pnpm/package-requester": "17.0.
|
|
37
|
+
"@pnpm/package-requester": "17.0.1",
|
|
38
38
|
"@pnpm/parse-overrides": "1.0.1",
|
|
39
39
|
"@pnpm/parse-wanted-dependency": "2.0.0",
|
|
40
40
|
"@pnpm/prune-lockfile": "3.0.15",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@pnpm/read-package-json": "5.0.12",
|
|
43
43
|
"@pnpm/read-project-manifest": "2.0.13",
|
|
44
44
|
"@pnpm/remove-bins": "2.0.14",
|
|
45
|
-
"@pnpm/resolve-dependencies": "25.0.
|
|
45
|
+
"@pnpm/resolve-dependencies": "25.0.6",
|
|
46
46
|
"@pnpm/resolver-base": "8.1.6",
|
|
47
47
|
"@pnpm/store-controller-types": "12.0.0",
|
|
48
48
|
"@pnpm/symlink-dependency": "4.0.13",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"@pnpm/assert-store": "1.0.32",
|
|
71
71
|
"@pnpm/cafs": "3.0.15",
|
|
72
72
|
"@pnpm/client": "6.1.3",
|
|
73
|
-
"@pnpm/core": "2.7.
|
|
73
|
+
"@pnpm/core": "2.7.8",
|
|
74
74
|
"@pnpm/logger": "^4.0.0",
|
|
75
|
-
"@pnpm/package-store": "12.1.
|
|
75
|
+
"@pnpm/package-store": "12.1.13",
|
|
76
76
|
"@pnpm/prepare": "0.0.36",
|
|
77
77
|
"@pnpm/registry-mock": "2.12.1",
|
|
78
78
|
"@pnpm/store-path": "^5.0.0",
|