diff options
Diffstat (limited to 'scripts/clean.js')
| -rw-r--r-- | scripts/clean.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/clean.js b/scripts/clean.js index dd2911e9..51073edf 100644 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -19,9 +19,11 @@ import { execSync } from 'child_process'; import { rmSync } from 'fs'; -import { join } from 'path'; +import { dirname, join } from 'path'; +import { fileURLToPath } from 'url'; -const root = join(import.meta.dirname, '..'); +const __dirname = dirname(fileURLToPath(import.meta.url)); +const root = join(__dirname, '..'); // remove npm install/build artifacts rmSync(join(root, 'node_modules'), { recursive: true, force: true }); |
