fix(packaging): dereference restored runtime deps
This commit is contained in:
@@ -366,7 +366,6 @@ describe('the shipped Web composition', () => {
|
|||||||
|
|
||||||
expect(await readFile(path, 'utf8')).toBe(before)
|
expect(await readFile(path, 'utf8')).toBe(before)
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('a switch survives the session', () => {
|
describe('a switch survives the session', () => {
|
||||||
|
|||||||
@@ -296,6 +296,7 @@ class SingleExeBuild {
|
|||||||
const nestedNodeModules = join(source, 'node_modules')
|
const nestedNodeModules = join(source, 'node_modules')
|
||||||
await cp(source, destination, {
|
await cp(source, destination, {
|
||||||
recursive: true,
|
recursive: true,
|
||||||
|
dereference: true,
|
||||||
filter: path => path !== nestedNodeModules && !path.startsWith(nestedNodeModules + sep),
|
filter: path => path !== nestedNodeModules && !path.startsWith(nestedNodeModules + sep),
|
||||||
})
|
})
|
||||||
restored.push(dependency)
|
restored.push(dependency)
|
||||||
|
|||||||
Reference in New Issue
Block a user