mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 17:41:26 -06:00
fix: produceLKG does not work on Windows (#50140)
This commit is contained in:
parent
924c68ca95
commit
e2fbe19adf
@ -90,7 +90,7 @@ async function copyFromBuiltLocal(fileName: string) {
|
||||
}
|
||||
|
||||
async function copyFilesWithGlob(pattern: string) {
|
||||
const files = glob.sync(path.join(source, pattern)).map(f => path.basename(f));
|
||||
const files = glob.sync(pattern, { cwd: source }).map(f => path.basename(f));
|
||||
for (const f of files) {
|
||||
await copyFromBuiltLocal(f);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user