@pnpm/store.path 1100.0.3 → 1100.0.5
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 +15 -0
- package/lib/index.js +1 -6
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @pnpm/store.path
|
|
2
2
|
|
|
3
|
+
## 1100.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @pnpm/error@1100.1.2
|
|
9
|
+
|
|
10
|
+
## 1100.0.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- @pnpm/constants@1101.0.0
|
|
16
|
+
- @pnpm/error@1100.1.1
|
|
17
|
+
|
|
3
18
|
## 1100.0.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -47,11 +47,6 @@ async function storePathRelativeToHome(pkgRoot, relStore, homedir) {
|
|
|
47
47
|
if (!dirsAreEqual(mountpointParent, mountpoint) && await canLinkToSubdir(tempFile, mountpointParent)) {
|
|
48
48
|
mountpoint = mountpointParent;
|
|
49
49
|
}
|
|
50
|
-
// If linking works only in the project folder
|
|
51
|
-
// then prefer to place the store inside the homedir
|
|
52
|
-
if (dirsAreEqual(pkgRoot, mountpoint)) {
|
|
53
|
-
return storeInHomeDir;
|
|
54
|
-
}
|
|
55
50
|
return path.join(mountpoint, '.pnpm-store', STORE_VERSION);
|
|
56
51
|
}
|
|
57
52
|
catch {
|
|
@@ -90,7 +85,7 @@ async function safeRmdir(dir) {
|
|
|
90
85
|
}
|
|
91
86
|
}
|
|
92
87
|
function dirsAreEqual(dir1, dir2) {
|
|
93
|
-
return path.relative(dir1, dir2) === '
|
|
88
|
+
return path.relative(dir1, dir2) === '';
|
|
94
89
|
}
|
|
95
90
|
function getHomedir() {
|
|
96
91
|
const home = os.homedir();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/store.path",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.5",
|
|
4
4
|
"description": "Resolves the pnpm store path",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"!*.map"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/constants": "
|
|
31
|
-
"@pnpm/error": "1100.1.
|
|
30
|
+
"@pnpm/constants": "1101.0.0",
|
|
31
|
+
"@pnpm/error": "1100.1.2",
|
|
32
32
|
"@zkochan/rimraf": "^4.0.0",
|
|
33
33
|
"can-link": "^3.0.0",
|
|
34
34
|
"path-absolute": "^2.0.0",
|
|
@@ -38,11 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@jest/globals": "30.4.1",
|
|
41
|
-
"@pnpm/store.path": "1100.0.
|
|
42
|
-
"@types/is-windows": "^1.0.2",
|
|
41
|
+
"@pnpm/store.path": "1100.0.5",
|
|
43
42
|
"@types/node": "^22.19.19",
|
|
44
43
|
"@types/touch": "^3.1.5",
|
|
45
|
-
"is-windows": "^1.0.2",
|
|
46
44
|
"rimraf": "^6.1.3"
|
|
47
45
|
},
|
|
48
46
|
"engines": {
|