@pnpm/installing.linking.real-hoist 1100.1.19 → 1100.1.21
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/CHANGELOG.md +24 -0
- package/lib/index.js +8 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @pnpm/real-hoist
|
|
2
2
|
|
|
3
|
+
## 1100.1.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `pnpm install` no longer fails when a package from the registry declares a `file:` dependency on a directory inside itself, such as `"@types/css-tree": "file:./typings/css-tree"`. pnpm links that dependency to the directory inside the package, as npm and Yarn do. The lockfile records it as `link:<root>/typings/css-tree` [#9141](https://github.com/pnpm/pnpm/issues/9141).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/deps.path@1101.0.5
|
|
11
|
+
- @pnpm/error@1100.2.1
|
|
12
|
+
- @pnpm/lockfile.types@1100.1.4
|
|
13
|
+
- @pnpm/lockfile.utils@1102.1.5
|
|
14
|
+
|
|
15
|
+
## 1100.1.20
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- `pnpm install` with `--filter` now installs only the dependencies of the selected projects when using `nodeLinker: hoisted` [#8882](https://github.com/pnpm/pnpm/issues/8882).
|
|
20
|
+
|
|
21
|
+
- Updated dependencies:
|
|
22
|
+
- @pnpm/deps.path@1101.0.4
|
|
23
|
+
- @pnpm/error@1100.2.0
|
|
24
|
+
- @pnpm/lockfile.types@1100.1.3
|
|
25
|
+
- @pnpm/lockfile.utils@1102.1.4
|
|
26
|
+
|
|
3
27
|
## 1100.1.19
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -75,6 +75,9 @@ export function getHoistingLimits(lockfile, mode) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
if (!hoistingLimits.has('.@')) {
|
|
79
|
+
hoistingLimits.set('.@', rootHoistingLimit);
|
|
80
|
+
}
|
|
78
81
|
return hoistingLimits;
|
|
79
82
|
}
|
|
80
83
|
export function hoist(lockfile, opts) {
|
|
@@ -144,7 +147,11 @@ function toTree({ nodes, lockfile, depPathByPkgId, autoInstallPeers }, deps) {
|
|
|
144
147
|
name: alias,
|
|
145
148
|
identName: alias,
|
|
146
149
|
reference: ref,
|
|
147
|
-
|
|
150
|
+
// A link into the declaring package must stay next to that package,
|
|
151
|
+
// and the hoister never moves a workspace node.
|
|
152
|
+
dependencyKind: dp.packageRootLinkTarget(ref) != null
|
|
153
|
+
? HoisterDependencyKind.WORKSPACE
|
|
154
|
+
: HoisterDependencyKind.REGULAR,
|
|
148
155
|
dependencies: new Set(),
|
|
149
156
|
peerNames: new Set(),
|
|
150
157
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.linking.real-hoist",
|
|
3
|
-
"version": "1100.1.
|
|
3
|
+
"version": "1100.1.21",
|
|
4
4
|
"description": "Hoists dependencies in a node_modules created by pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/deps.path": "1101.0.
|
|
31
|
-
"@pnpm/error": "1100.1
|
|
32
|
-
"@pnpm/lockfile.types": "1100.1.
|
|
33
|
-
"@pnpm/lockfile.utils": "1102.1.
|
|
30
|
+
"@pnpm/deps.path": "1101.0.5",
|
|
31
|
+
"@pnpm/error": "1100.2.1",
|
|
32
|
+
"@pnpm/lockfile.types": "1100.1.4",
|
|
33
|
+
"@pnpm/lockfile.utils": "1102.1.5",
|
|
34
34
|
"@yarnpkg/nm": "4.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@jest/globals": "30.4.1",
|
|
38
|
-
"@pnpm/installing.linking.real-hoist": "1100.1.
|
|
39
|
-
"@pnpm/lockfile.fs": "1100.2.
|
|
38
|
+
"@pnpm/installing.linking.real-hoist": "1100.1.21",
|
|
39
|
+
"@pnpm/lockfile.fs": "1100.2.10",
|
|
40
40
|
"@pnpm/test-fixtures": "1100.0.1",
|
|
41
|
-
"@pnpm/types": "1102.1.
|
|
41
|
+
"@pnpm/types": "1102.1.1"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22.13"
|