From 0f0ab9d1c598677e9928a4510f12cda9eb7180be Mon Sep 17 00:00:00 2001 From: qwqcode Date: Fri, 30 Aug 2024 22:40:33 +0800 Subject: [PATCH] fix(plugin_kit): fix TypeScript lib path retrieval on win --- ui/plugin-kit/src/plugin/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/plugin-kit/src/plugin/utils.ts b/ui/plugin-kit/src/plugin/utils.ts index 765c0467..cd2acca0 100644 --- a/ui/plugin-kit/src/plugin/utils.ts +++ b/ui/plugin-kit/src/plugin/utils.ts @@ -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') }