fix: resotre asar skipped files to node_modules/

This commit is contained in:
deepak1556
2024-09-06 17:56:05 +09:00
parent daca01a213
commit cb75f3029c
2 changed files with 12 additions and 0 deletions

View File

@@ -88,6 +88,12 @@ export function createAsar(folderPath: string, unpackGlobs: string[], skipGlobs:
throw new Error(`unknown item in stream!`);
}
if (shouldSkipFile(file)) {
this.queue(new VinylFile({
base: '.',
path: file.path,
stat: file.stat,
contents: file.contents
}));
return;
}
const shouldUnpack = shouldUnpackFile(file);