mirror of
https://github.com/nocobase/nocobase.git
synced 2026-12-06 22:23:41 +08:00
10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
import { rmSync } from 'node:fs';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const scriptsDir = path.dirname(fileURLToPath(import.meta.url));
|
|
const packageRoot = path.resolve(scriptsDir, '..');
|
|
const distDir = path.join(packageRoot, 'dist');
|
|
|
|
rmSync(distDir, { recursive: true, force: true });
|