diff --git a/cli/src/api/artifacts.ts b/cli/src/api/artifacts.ts index c6d192b8..a0378947 100644 --- a/cli/src/api/artifacts.ts +++ b/cli/src/api/artifacts.ts @@ -90,7 +90,9 @@ async function collectNodeBinaries(root: string) { const dirs = files.filter((file) => file.isDirectory()) for (const dir of dirs) { - nodeBinaries.push(...(await collectNodeBinaries(join(root, dir.name)))) + if (dir.name !== 'node_modules') { + nodeBinaries.push(...(await collectNodeBinaries(join(root, dir.name)))) + } } return nodeBinaries }