diff --git a/packages/backend/tsconfig.json b/packages/backend/tsconfig.json index 93944a68d5..9e24ec2433 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 1dc5beb1a2..f9a0170611 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 24e5af4c40..6e2a8f95d7 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 96e47db961..c853d4bd47 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",