Skip to content

Commit e2fbe19

Browse files
authored
fix: produceLKG does not work on Windows (microsoft#50140)
1 parent 924c68c commit e2fbe19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/produceLKG.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function copyFromBuiltLocal(fileName: string) {
9090
}
9191

9292
async function copyFilesWithGlob(pattern: string) {
93-
const files = glob.sync(path.join(source, pattern)).map(f => path.basename(f));
93+
const files = glob.sync(pattern, { cwd: source }).map(f => path.basename(f));
9494
for (const f of files) {
9595
await copyFromBuiltLocal(f);
9696
}

0 commit comments

Comments
 (0)