fix(cli): exclude node_modules in artifacts command
This commit is contained in:
parent
43a080d52b
commit
67743b1046
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue