diff --git a/apps/bff/tsconfig.build.json b/apps/bff/tsconfig.build.json index ab326de6..352367ef 100644 --- a/apps/bff/tsconfig.build.json +++ b/apps/bff/tsconfig.build.json @@ -3,7 +3,8 @@ "compilerOptions": { "noEmit": false, "outDir": "./dist", - "rootDir": "./src" + "rootDir": "./src", + "sourceMap": true }, "include": ["src/**/*"], "exclude": ["node_modules", "dist", "test", "**/*.spec.ts", "**/*.test.ts"] diff --git a/apps/bff/tsconfig.json b/apps/bff/tsconfig.json index 0050bd0c..7eff1e4e 100644 --- a/apps/bff/tsconfig.json +++ b/apps/bff/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", "verbatimModuleSyntax": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, diff --git a/apps/bff/tsconfig.typecheck.core-utils.json b/apps/bff/tsconfig.typecheck.core-utils.json deleted file mode 100644 index cabd4289..00000000 --- a/apps/bff/tsconfig.typecheck.core-utils.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "noEmit": true, - "composite": false, - "declaration": false, - "emitDeclarationOnly": false, - "declarationMap": false, - "incremental": true, - "tsBuildInfoFile": ".typecheck/core-utils.tsbuildinfo", - "outDir": ".typecheck/core-utils", - "rootDir": "src" - }, - "include": ["src/core/utils/**/*.ts", "src/core/utils/**/*.tsx"], - "exclude": ["node_modules", "dist", "test", "**/*.{spec,test}.ts", "**/*.{spec,test}.tsx"] -} diff --git a/apps/portal/src/hooks/useZodForm.ts b/apps/portal/src/hooks/useZodForm.ts index 78cc74ca..89517220 100644 --- a/apps/portal/src/hooks/useZodForm.ts +++ b/apps/portal/src/hooks/useZodForm.ts @@ -5,7 +5,7 @@ import { useCallback, useMemo, useState } from "react"; import type { FormEvent } from "react"; -import { ZodError, type ZodIssue, type ZodSchema } from "zod"; +import { ZodError, type ZodIssue, type ZodType } from "zod"; export type FormErrors<_TValues extends Record> = Record< string, @@ -17,7 +17,7 @@ export type FormTouched<_TValues extends Record> = Record< >; export interface ZodFormOptions> { - schema: ZodSchema; + schema: ZodType; initialValues: TValues; onSubmit?: (data: TValues) => Promise | void; } diff --git a/eslint.config.mjs b/eslint.config.mjs index ba3c0473..78433008 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -15,6 +15,10 @@ export default [ "**/node_modules/**", "**/dist/**", "**/.next/**", + "**/.turbo/**", + "**/.cache/**", + "**/.pnpm-store/**", + "**/.typecheck/**", "**/build/**", "**/coverage/**", "**/next-env.d.ts", diff --git a/packages/domain/package.json b/packages/domain/package.json index d8d0eba1..0f3ea386 100644 --- a/packages/domain/package.json +++ b/packages/domain/package.json @@ -132,10 +132,11 @@ "type-check": "NODE_OPTIONS=\"--max-old-space-size=2048 --max-semi-space-size=128\" tsc --project tsconfig.json --noEmit", "typecheck": "pnpm run type-check" }, - "dependencies": { + "peerDependencies": { "zod": "4.1.13" }, "devDependencies": { - "typescript": "5.9.3" + "typescript": "5.9.3", + "zod": "4.1.13" } } diff --git a/packages/domain/tsconfig.json b/packages/domain/tsconfig.json index b7178b8f..7e64a9be 100644 --- a/packages/domain/tsconfig.json +++ b/packages/domain/tsconfig.json @@ -2,11 +2,12 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "composite": true, + "declaration": true, + "declarationMap": true, "outDir": "./dist", "rootDir": ".", - "tsBuildInfoFile": "./dist/.tsbuildinfo", - "module": "NodeNext", - "moduleResolution": "NodeNext" + "sourceMap": true, + "tsBuildInfoFile": "./dist/.tsbuildinfo" }, "include": [ "auth/**/*", diff --git a/tsconfig.base.json b/tsconfig.base.json index 8605b92e..31394a02 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,6 +3,8 @@ "compilerOptions": { "target": "ES2024", "lib": ["ESNext"], + "module": "NodeNext", + "moduleResolution": "NodeNext", "strict": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, @@ -10,9 +12,6 @@ "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "isolatedModules": true, - "declaration": true, - "declarationMap": true, - "sourceMap": true, "skipLibCheck": true, "incremental": true }