Skip to content

Commit 3cd6ca0

Browse files
committed
Fix regression with workdir symlinks
If a workdir was refering a symlink directory, we would pass it to yazl, which would error out because it's a directory. glob recommends using `follow: true` to consider directory symlinks as directories in the collection.
1 parent ba66818 commit 3cd6ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ async function collectAllFiles(
16171617
): Promise<string[]> {
16181618
const deps = await getDependencies(cwd, dependencies, dependencyEntryPoints);
16191619
const promises = deps.map(dep =>
1620-
glob('**', { cwd: dep, nodir: true, dot: true, ignore: 'node_modules/**' }).then(files =>
1620+
glob('**', { cwd: dep, nodir: true, follow: true, dot: true, ignore: 'node_modules/**' }).then(files =>
16211621
files.map(f => path.relative(cwd, path.join(dep, f))).map(f => f.replace(/\\/g, '/'))
16221622
)
16231623
);

0 commit comments

Comments
 (0)