diff --git a/client/tsconfig.app.json b/client/tsconfig.app.json index b6b37d6..5a90073 100644 --- a/client/tsconfig.app.json +++ b/client/tsconfig.app.json @@ -26,5 +26,5 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src", "../server/src/utils/fallbackQuestions.ts"] } diff --git a/server/src/utils/PromptBuilder.ts b/server/src/utils/PromptBuilder.ts index e950c74..36af986 100644 --- a/server/src/utils/PromptBuilder.ts +++ b/server/src/utils/PromptBuilder.ts @@ -1,4 +1,4 @@ -import { fallbackQuestions, FallbackQuestion } from "@/utils/fallbackQuestions"; +import { FallbackQuestion } from "@/utils/fallbackQuestions"; export class PromptBuilder { /** diff --git a/server/tsconfig.json b/server/tsconfig.json index bc309f6..a082141 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -1,14 +1,18 @@ { "compilerOptions": { - "target": "es2016", /* Set the JavaScript language version for emitted JavaScript. */ - "module": "commonjs", /* Specify what module code is generated. */ - "outDir": "./dist", /* Specify the output folder for all emitted files. */ - "rootDir": "./src", /* Specify the root folder for input files. */ - "strict": true, /* Enable all strict type-checking options. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "target": "es2016", + "module": "commonjs", + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "baseUrl": "./", // Set the base directory for module resolution + "paths": { + "@/*": ["src/*"] // Map the '@' alias to the 'src' directory + } }, - "include": ["src/**/*"], /* Include all TypeScript files in the src folder. */ - "exclude": ["node_modules"] /* Exclude the node_modules folder. */ + "include": ["src/**/*"], + "exclude": ["node_modules"] } \ No newline at end of file