feat(build): make permissions checks less strict

This commit is contained in:
2026-07-29 21:52:45 +02:00
parent 60e02ebcf7
commit 4a080ce374
3 changed files with 13 additions and 35 deletions
+6 -1
View File
@@ -17,7 +17,7 @@ limitations under the License.
*/
import { processPlugin } from './utils/plugin.js';
import { readdir } from 'node:fs/promises';
import { readdir, rm } from 'node:fs/promises';
import { join } from 'node:path';
import { pathToFileURL } from 'node:url';
import { parseArgs } from 'node:util';
@@ -47,6 +47,11 @@ const { values: args } = parseArgs({
}
});
await rm(args.distBase, {
recursive: true,
force: true
});
(await Promise.all(
files
.filter((file) => file.endsWith('.js'))