Skip to content

Commit e00102b

Browse files
authored
fix: enable dereference when copying module to tmp dir (#4030)
When executing the copy command, for symlinked node_modules like in the case of pnpm, the copy will treat nested folders as files which breaks the pack command. De-referencing will make sure any symlinked folders are actually dereferenced. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
1 parent ac7cc01 commit e00102b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/jsii-pacmak/lib/packaging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export class JsiiModule {
6868
args.push('--loglevel=verbose');
6969
}
7070
} else {
71-
// Ensure module is copied to tmpdir to ensure parallel execution does not content on generated tarballs
72-
await fs.copy(this.moduleDirectory, tmpdir);
71+
// Ensure module is copied to tmpdir to ensure parallel execution does not contend on generated tarballs
72+
await fs.copy(this.moduleDirectory, tmpdir, { dereference: true });
7373
}
7474

7575
const out = await shell(packCommand, args, {

0 commit comments

Comments
 (0)