Skip to content

Commit

Permalink
lol?
Browse files Browse the repository at this point in the history
  • Loading branch information
catplvsplus committed Oct 23, 2023
1 parent d5d8ea7 commit cb213c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/npm-loader/src/workers/getModuleFiles.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!parentPort) process.exit();
const data = workerData as WorkerData;
const scanned: WorkerScannedFolderData[] = [];

for (const folder of data.folders) {
await Promise.all(data.folders.map(async folder => {
const isValid = await RecipleNPMLoader.isValidModuleFolder(folder, {
dependencies: data.dependencies,
ignoredPackages: data.ignoredPackages
Expand All @@ -20,7 +20,7 @@ for (const folder of data.folders) {
valid: false
});

continue;
return;
}

const packageJson = await RecipleNPMLoader.getPackageJson(path.join(folder, 'package.json'), true);
Expand All @@ -31,6 +31,6 @@ for (const folder of data.folders) {
moduleFile,
valid: true
});
}
}));

parentPort.postMessage(scanned);

0 comments on commit cb213c3

Please sign in to comment.