@preventive/deptree 1.3.2 → 1.3.3
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/package.json +3 -3
- package/src/mount.js +1 -1
- package/src/pnpm/write.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@preventive/deptree",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "In-memory dependency tree, as a package manager installs it",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -148,11 +148,11 @@
|
|
|
148
148
|
"dependencies": {
|
|
149
149
|
"@chalker/queue": "^1.0.1",
|
|
150
150
|
"@exodus/bytes": "^1.16.0",
|
|
151
|
-
"@preventive/archive": "^1.2.
|
|
151
|
+
"@preventive/archive": "^1.2.2",
|
|
152
152
|
"@preventive/compare": "^1.2.11",
|
|
153
153
|
"@preventive/diff": "^1.1.0",
|
|
154
154
|
"@preventive/lockfile": "^1.2.0",
|
|
155
155
|
"@preventive/upstream": "^1.3.0",
|
|
156
|
-
"@preventive/vfs": "^1.
|
|
156
|
+
"@preventive/vfs": "^1.1.0"
|
|
157
157
|
}
|
|
158
158
|
}
|
package/src/mount.js
CHANGED
|
@@ -116,7 +116,7 @@ export function writeFiles(vfs, root, { dirs, files, links = new Map() }, stats,
|
|
|
116
116
|
if (skip(path)) continue
|
|
117
117
|
const at = checkWrite(vfs, root, path, real)
|
|
118
118
|
try {
|
|
119
|
-
vfs.writeFile(at, file.data, { mode: file.mode })
|
|
119
|
+
vfs.writeFile(at, file.data, { mode: file.mode, adopt: true })
|
|
120
120
|
} catch (error) {
|
|
121
121
|
throw asRefusal(error, 'written', `${root}/${path}`)
|
|
122
122
|
}
|
package/src/pnpm/write.js
CHANGED
|
@@ -62,7 +62,8 @@ export function writeNode(vfs, dir, files, stats) {
|
|
|
62
62
|
makeDirs(vfs, parent.slice(1), real)
|
|
63
63
|
addMade(made, parent)
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
// A package's bytes are handed over, not copied: nothing writes into them after (vfs's `adopt`).
|
|
66
|
+
vfs.writeFile(checkWrite(vfs, dir, path, real), file.data, { mode: file.mode, adopt: true })
|
|
66
67
|
stats.files++
|
|
67
68
|
stats.bytes += file.data.length
|
|
68
69
|
}
|