Skip to content

Commit

Permalink
fix(plugin_kit): fix typescript lib path retrieval on win
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Aug 30, 2024
1 parent ac54eae commit 6485410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/plugin-kit/src/plugin/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ export function getDistFileName(name: string, format: string) {
export function getTypescriptLibFolder() {
return createRequire(import.meta.url)
.resolve('typescript')
.replace(/\\+/g, '/') // fix windows path
.replace(/node_modules\/typescript.*/, 'node_modules/typescript')
}

0 comments on commit 6485410

Please sign in to comment.