Skip to content

Commit

Permalink
fix(icongenie): quirk on Windows regarding path to default source icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Aug 7, 2023
1 parent ac36138 commit 0e84efe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion icongenie/lib/utils/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
import { readFileSync } from 'node:fs'

export const packageJson = JSON.parse(
readFileSync(new URL('../../package.json', import.meta.url), 'utf-8')
readFileSync(
new URL('../../package.json', import.meta.url),
'utf-8'
)
)
6 changes: 4 additions & 2 deletions icongenie/lib/utils/parse-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ function parseIconPath (value) {
function icon (value, argv) {
if (!value) {
warn(`No source icon file specified, so using the sample one`)
argv.icon = normalize(fileURLToPath(
new URL('../../samples/icongenie-icon.png', import.meta.url))
argv.icon = normalize(
fileURLToPath(
new URL('../../samples/icongenie-icon.png', import.meta.url)
)
)
return
}
Expand Down

0 comments on commit 0e84efe

Please sign in to comment.