fix: produceLKG does not work on Windows (#50140)

This commit is contained in:
Jack Works 2022-08-11 11:12:17 +08:00 committed by GitHub
parent 924c68ca95
commit e2fbe19adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}