From 78736eb9b51c67a6f07ef5cd7ad56569ee3e19a5 Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Fri, 20 Dec 2024 22:44:16 +0400 Subject: [PATCH] chore: fix path again --- apps/client/tsconfig.json | 10 ++++++++++ tsconfig.node.json => apps/client/tsconfig.node.json | 6 +++++- tsconfig.json | 6 +----- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 apps/client/tsconfig.json rename tsconfig.node.json => apps/client/tsconfig.node.json (63%) diff --git a/apps/client/tsconfig.json b/apps/client/tsconfig.json new file mode 100644 index 0000000..5c503ec --- /dev/null +++ b/apps/client/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + // "baseUrl": ".", + "paths": { + "~/*": ["./app/*"] + } + }, + "include": ["app", "./vite-env.d.ts"] +} diff --git a/tsconfig.node.json b/apps/client/tsconfig.node.json similarity index 63% rename from tsconfig.node.json rename to apps/client/tsconfig.node.json index 40688e8..165725f 100644 --- a/tsconfig.node.json +++ b/apps/client/tsconfig.node.json @@ -4,7 +4,11 @@ "composite": true, "forceConsistentCasingInFileNames": true, "module": "esnext", - "moduleResolution": "node" + "moduleResolution": "node", + // "baseUrl": ".", + "paths": { + "~/*": ["./app/*"] + } }, "include": ["vite.config.ts"] } diff --git a/tsconfig.json b/tsconfig.json index 230a6d4..a0abd72 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,9 +7,6 @@ "module": "ESNext", "rootDir": "./", "moduleResolution": "Node", - "paths": { - "~/*": ["./apps/client/app/*"] - }, "resolveJsonModule": true, "allowJs": false, "sourceMap": true, @@ -21,6 +18,5 @@ "strict": true, "noImplicitAny": true, "skipLibCheck": true - }, - "include": ["apps/client", "apps/client/vite-env.d.ts"] + } }