We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2012f28 commit aef1b55Copy full SHA for aef1b55
packages/ui/scripts/update-icons.ts
@@ -1,11 +1,12 @@
1
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
2
import { dirname, resolve } from 'node:path'
3
+import { fileURLToPath } from 'node:url'
4
import { icons } from '@iconify-json/ic'
5
import { devDependencies } from '../package.json'
6
7
const VERSION_COMMENT_RE = /\/\/ Generated from @iconify-json\/ic@(.*)\n/
8
-const __dirname = dirname(new URL(import.meta.url).pathname)
9
+const __dirname = dirname(fileURLToPath(new URL(import.meta.url)))
10
11
const targetPath = resolve(__dirname, '../src/constants/ic-icons.ts')
12
0 commit comments