@pnpm/installing.linking.real-hoist 1100.1.20 → 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 +12 -0
- package/lib/index.js +5 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 1100.1.20
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -147,7 +147,11 @@ function toTree({ nodes, lockfile, depPathByPkgId, autoInstallPeers }, deps) {
|
|
|
147
147
|
name: alias,
|
|
148
148
|
identName: alias,
|
|
149
149
|
reference: ref,
|
|
150
|
-
|
|
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,
|
|
151
155
|
dependencies: new Set(),
|
|
152
156
|
peerNames: new Set(),
|
|
153
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,16 +27,16 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/deps.path": "1101.0.
|
|
31
|
-
"@pnpm/error": "1100.2.
|
|
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
41
|
"@pnpm/types": "1102.1.1"
|
|
42
42
|
},
|