fix(cli): exclude node_modules in artifacts command (#1875)
This commit is contained in:
commit
f62685e836
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())
|
const dirs = files.filter((file) => file.isDirectory())
|
||||||
for (const dir of dirs) {
|
for (const dir of dirs) {
|
||||||
|
if (dir.name !== 'node_modules') {
|
||||||
nodeBinaries.push(...(await collectNodeBinaries(join(root, dir.name))))
|
nodeBinaries.push(...(await collectNodeBinaries(join(root, dir.name))))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nodeBinaries
|
return nodeBinaries
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue