fix(packaging): dereference restored runtime deps

This commit is contained in:
Yichen Jiang
2026-08-10 22:25:02 +08:00
parent b87a3b1baf
commit b668e6f120
2 changed files with 1 additions and 1 deletions

View File

@@ -366,7 +366,6 @@ describe('the shipped Web composition', () => {
expect(await readFile(path, 'utf8')).toBe(before)
})
})
describe('a switch survives the session', () => {

View File

@@ -296,6 +296,7 @@ class SingleExeBuild {
const nestedNodeModules = join(source, 'node_modules')
await cp(source, destination, {
recursive: true,
dereference: true,
filter: path => path !== nestedNodeModules && !path.startsWith(nestedNodeModules + sep),
})
restored.push(dependency)