Allow empty lib dir when populating npm packages

This commit is contained in:
Lovell Fuller 2023-11-04 20:08:17 +00:00
parent 7c1551bdc9
commit 239435a6dc

View File

@ -47,7 +47,7 @@ workspaces.map(async platform => {
} }
// Extract prebuild tarball // Extract prebuild tarball
const lib = path.join(dir, 'lib'); const lib = path.join(dir, 'lib');
await rm(lib, { recursive: true }); await rm(lib, { force: true, recursive: true });
await pipeline( await pipeline(
Readable.fromWeb(response.body), Readable.fromWeb(response.body),
createGunzip(), createGunzip(),