diff --git a/src/generate-palette.ts b/src/generate-palette.ts index c6d6ade..30583dd 100644 --- a/src/generate-palette.ts +++ b/src/generate-palette.ts @@ -64,7 +64,7 @@ function readCustomProperties(element: Element): Record { async function extractPalette(outputPath: string) { const themePackageJson = ( - await import(path.join(process.cwd(), 'package.json'), { with: { type: 'json' } }) + await import(pathToFileURL(path.join(process.cwd(), 'package.json')).toString(), { with: { type: 'json' } }) ).default const themeVariableManifest: ThemeVariableManifest = ( await import(`@inkdropapp/css/variables.json`, { with: { type: 'json' } })