generated from Seekra/repository-template
feat(build): make permissions checks less strict
This commit is contained in:
+6
-1
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user