mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
14 lines
359 B
JavaScript
14 lines
359 B
JavaScript
|
import fs from "node:fs/promises";
|
||
|
import path from "node:path";
|
||
|
import { fileURLToPath } from "node:url";
|
||
|
|
||
|
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
|
||
|
const TMP_BUNDLERS_DIR = path.resolve( dirname, "..", "tmp" );
|
||
|
|
||
|
export async function cleanTmpBundlersDir() {
|
||
|
await fs.rm( TMP_BUNDLERS_DIR, {
|
||
|
force: true,
|
||
|
recursive: true
|
||
|
} );
|
||
|
}
|