diff --git a/flight-comparator/.gitignore b/flight-comparator/.gitignore index b4161d0..aaccaf2 100644 --- a/flight-comparator/.gitignore +++ b/flight-comparator/.gitignore @@ -52,6 +52,9 @@ htmlcov/ !tests/confirmed_flights.json !frontend/package.json !frontend/package-lock.json +!frontend/tsconfig.json +!frontend/tsconfig.app.json +!frontend/tsconfig.node.json # Database files *.db diff --git a/flight-comparator/Dockerfile.frontend b/flight-comparator/Dockerfile.frontend index 6f6acda..72c0a94 100644 --- a/flight-comparator/Dockerfile.frontend +++ b/flight-comparator/Dockerfile.frontend @@ -5,7 +5,7 @@ WORKDIR /app COPY frontend/package*.json ./ RUN npm ci COPY frontend/ . -RUN npx vite build +RUN npm run build # ── Stage 2: Serve with nginx ────────────────────────────────────────────── FROM nginx:alpine diff --git a/flight-comparator/frontend/tsconfig.app.json b/flight-comparator/frontend/tsconfig.app.json new file mode 100644 index 0000000..1903283 --- /dev/null +++ b/flight-comparator/frontend/tsconfig.app.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +} diff --git a/flight-comparator/frontend/tsconfig.json b/flight-comparator/frontend/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/flight-comparator/frontend/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/flight-comparator/frontend/tsconfig.node.json b/flight-comparator/frontend/tsconfig.node.json new file mode 100644 index 0000000..1dba6de --- /dev/null +++ b/flight-comparator/frontend/tsconfig.node.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["vite.config.ts"] +}