From 442e3004570744a67c28ff19c596a29207f833f4 Mon Sep 17 00:00:00 2001 From: domverse Date: Sat, 28 Feb 2026 14:02:21 +0100 Subject: [PATCH] fix: add missing tsconfig files and restore npm run build tsconfig.json, tsconfig.app.json, and tsconfig.node.json were never committed because *.json was gitignored without exceptions for them. Added whitelist entries and restored Dockerfile to use npm run build (tsc -b + vite) now that the config files are present. Co-Authored-By: Claude Sonnet 4.6 --- flight-comparator/.gitignore | 3 +++ flight-comparator/Dockerfile.frontend | 2 +- flight-comparator/frontend/tsconfig.app.json | 22 +++++++++++++++++++ flight-comparator/frontend/tsconfig.json | 7 ++++++ flight-comparator/frontend/tsconfig.node.json | 20 +++++++++++++++++ 5 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 flight-comparator/frontend/tsconfig.app.json create mode 100644 flight-comparator/frontend/tsconfig.json create mode 100644 flight-comparator/frontend/tsconfig.node.json 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"] +}