Repository navigation
Library upgrade - #70
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades a number of runtime/dev dependencies and adjusts TypeScript + Docker tooling to match the new build/runtime layout, while also adding a basic /health endpoint for container health checks.
Changes:
- Upgraded multiple dependencies/devDependencies (Express, Mongoose, Jest, TypeScript, etc.) and adjusted scripts (notably the new build output path for
serve). - Updated TypeScript configuration (rootDir/outDir, include tests) and removed
tsconfig.build.json. - Added a new health route and introduced Docker Compose healthchecks + service_healthy dependencies.
Reviewed changes
Copilot reviewed 14 out of 17 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Updates TS compiler settings/output layout and includes tests in compilation. |
| tsconfig.build.json | Removed build-specific TS config file. |
| tests/routes/blog/index/unit.test.ts | Fixes Jest matcher usage (toHaveReturnedTimes). |
| src/routes/index.ts | Registers the new health router before auth middleware. |
| src/routes/health/index.ts | Adds a new health endpoint returning a timestamp. |
| package.json | Upgrades deps and updates runtime/test scripts (serve path, explicit jest config). |
| Dockerfile.test | Updates test image base to node:24-alpine. |
| Dockerfile | Updates app image base to node:24-alpine. |
| docker-compose.yml | Adds healthchecks, health-based dependency ordering, network, and bumps Mongo/Redis images. |
| addons/init-project.ts | Disables TS checking for the init script and fixes a missing semicolon. |
| .vscode/tasks.json | Renames route template generation task label. |
| .vscode/settings.json | Updates VS Code JS/TS settings keys. |
| .vscode/launch.json | Renames debug config (but still points at old build output path). |
| .templates/route/index.ts | Adjusts relative import paths in the route template file. |
| .gitignore | Adds tsconfig.tsbuildinfo to ignores. |
| .env.example | Renames Mongo admin env vars to MONGO_INITDB_* keys. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+17
to
19
| /*---------------------------------------------------------*/ | ||
| router.use('health', health); | ||
| /*---------------------------------------------------------*/ |
Comment on lines
+35
to
+37
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://localhost:3000/health"] | ||
| interval: 5s |
Comment on lines
+10
to
12
| "name": "Debug Server", | ||
| "program": "${workspaceFolder}/build/server.js", | ||
| "preLaunchTask": "tsc: build - tsconfig.json", |
Comment on lines
+1
to
3
| // @ts-nocheck | ||
|
|
||
| import { existsSync, readFileSync, writeFileSync } from 'fs'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.