Skip to content

Commit 837439e

Browse files
committed
fix: clean script for older node
1 parent f78da17 commit 837439e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compass-web/scripts/clean-dts.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import fs from 'node:fs/promises';
44
import path from 'node:path';
55

6-
const distDir = path.join(import.meta.dirname, '..', 'dist');
6+
const __dirname = path.dirname(new URL(import.meta.url).pathname);
7+
const distDir = path.join(__dirname, '..', 'dist');
78

89
await Promise.all(
910
(

0 commit comments

Comments
 (0)