We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b10893 commit 8decb92Copy full SHA for 8decb92
1 file changed
scripts/sync-plugins.mjs
@@ -7,8 +7,9 @@
7
8
import { readFileSync, writeFileSync, mkdirSync, readdirSync, existsSync } from 'node:fs'
9
import { join, basename } from 'node:path'
10
+import { fileURLToPath } from 'node:url'
11
-const root = new URL('..', import.meta.url).pathname.replace(/\/$/, '')
12
+const root = fileURLToPath(new URL('..', import.meta.url)).replace(/\/$/, '')
13
const packagesDir = join(root, 'packages')
14
15
const comarkPluginsDir = join(packagesDir, 'comark', 'dist', 'plugins')
0 commit comments