fix(cli): missing wasm files in artifacts command (#1884)
This commit is contained in:
parent
03eb476cef
commit
c73cb31c11
1 changed files with 5 additions and 1 deletions
|
@ -120,7 +120,11 @@ export async function collectArtifacts(userOptions: ArtifactsOptions) {
|
|||
async function collectNodeBinaries(root: string) {
|
||||
const files = await readdirAsync(root, { withFileTypes: true })
|
||||
const nodeBinaries = files
|
||||
.filter((file) => file.isFile() && file.name.endsWith('.node'))
|
||||
.filter(
|
||||
(file) =>
|
||||
file.isFile() &&
|
||||
(file.name.endsWith('.node') || file.name.endsWith('.wasm')),
|
||||
)
|
||||
.map((file) => join(root, file.name))
|
||||
|
||||
const dirs = files.filter((file) => file.isDirectory())
|
||||
|
|
Loading…
Reference in a new issue