From 92a69ef687b0014ebdccaddab5de0dcf41d72c8c Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 11 Apr 2024 17:28:57 +0200 Subject: [PATCH] Ensure import actions use the correct paths (#3093) * drop unnecessary rootDir / paths in tsconfig This was causing issues with automatic imports that pointed to `utils/foo` instead of `../utils/foo` and caused the build to break. * drop unnecessary tsconfig configuration from `@headlessui/vue` --- packages/@headlessui-react/tsconfig.json | 6 ------ packages/@headlessui-vue/tsconfig.json | 6 ------ 2 files changed, 12 deletions(-) diff --git a/packages/@headlessui-react/tsconfig.json b/packages/@headlessui-react/tsconfig.json index 3ad746e..7664841 100644 --- a/packages/@headlessui-react/tsconfig.json +++ b/packages/@headlessui-react/tsconfig.json @@ -6,7 +6,6 @@ "importHelpers": true, "declaration": true, "sourceMap": true, - "rootDir": "./src", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, @@ -14,11 +13,6 @@ "noFallthroughCasesInSwitch": true, "downlevelIteration": true, "moduleResolution": "node", - "baseUrl": "./", - "paths": { - "@headlessui/react": ["src"], - "*": ["src/*", "node_modules/*"] - }, "jsx": "react", "esModuleInterop": true, "target": "ESNext", diff --git a/packages/@headlessui-vue/tsconfig.json b/packages/@headlessui-vue/tsconfig.json index ecee5b7..8df2643 100644 --- a/packages/@headlessui-vue/tsconfig.json +++ b/packages/@headlessui-vue/tsconfig.json @@ -6,7 +6,6 @@ "importHelpers": true, "declaration": true, "sourceMap": true, - "rootDir": "./src", "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, @@ -14,11 +13,6 @@ "noFallthroughCasesInSwitch": true, "downlevelIteration": true, "moduleResolution": "node", - "baseUrl": "./", - "paths": { - "@headlessui/vue": ["src"], - "*": ["src/*", "node_modules/*"] - }, "esModuleInterop": true, "target": "ESNext", "allowJs": true,