diff --git a/packages/backend/tsconfig.json b/packages/backend/tsconfig.json index 93944a68d..9e24ec243 100644 --- a/packages/backend/tsconfig.json +++ b/packages/backend/tsconfig.json @@ -33,8 +33,9 @@ "node" ], "typeRoots": [ + "./src/@types", "./node_modules/@types", - "./src/@types" + "./node_modules", ], "lib": [ "esnext" diff --git a/packages/frontend/tsconfig.json b/packages/frontend/tsconfig.json index 1dc5beb1a..f9a017061 100644 --- a/packages/frontend/tsconfig.json +++ b/packages/frontend/tsconfig.json @@ -26,9 +26,10 @@ "@/*": ["./src/*"] }, "typeRoots": [ - "node_modules/@types", - "node_modules/@vue-macros", - "@types" + "./@types", + "./node_modules/@types", + "./node_modules/@vue-macros", + "./node_modules", ], "types": [ "vite/client", diff --git a/packages/misskey-js/tsconfig.json b/packages/misskey-js/tsconfig.json index 24e5af4c4..6e2a8f95d 100644 --- a/packages/misskey-js/tsconfig.json +++ b/packages/misskey-js/tsconfig.json @@ -16,7 +16,7 @@ "noImplicitReturns": true, "esModuleInterop": true, "typeRoots": [ - "node_modules/@types" + "./node_modules/@types" ], "lib": [ "esnext", diff --git a/packages/sw/tsconfig.json b/packages/sw/tsconfig.json index 96e47db96..c853d4bd4 100644 --- a/packages/sw/tsconfig.json +++ b/packages/sw/tsconfig.json @@ -24,8 +24,8 @@ "@/*": ["./src/*"] }, "typeRoots": [ - "node_modules/@types", - "@types" + "./node_modules/@types", + "./src/@types" ], "lib": [ "esnext",