Skip to content

Commit 8decb92

Browse files
authored
fix(scripts): ensure path decoding (#211)
1 parent 8b10893 commit 8decb92

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/sync-plugins.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
import { readFileSync, writeFileSync, mkdirSync, readdirSync, existsSync } from 'node:fs'
99
import { join, basename } from 'node:path'
10+
import { fileURLToPath } from 'node:url'
1011

11-
const root = new URL('..', import.meta.url).pathname.replace(/\/$/, '')
12+
const root = fileURLToPath(new URL('..', import.meta.url)).replace(/\/$/, '')
1213
const packagesDir = join(root, 'packages')
1314

1415
const comarkPluginsDir = join(packagesDir, 'comark', 'dist', 'plugins')

0 commit comments

Comments
 (0)