Skip to content

0.7.3#208

Merged
Morfusee merged 6 commits into
mainfrom
0.7.3
Jun 7, 2026
Merged

0.7.3#208
Morfusee merged 6 commits into
mainfrom
0.7.3

Conversation

@Morfusee

@Morfusee Morfusee commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements to the development workflow, Docker configuration, type safety, and dependency management. The most notable changes are the addition of a justfile for consistent developer commands, updates to Docker and Compose files for local development, enhancements to TypeScript typings, and dependency updates (including security-related deprecations and new package versions).

Developer workflow improvements:

  • Added a justfile at the project root to standardize and simplify common development tasks such as install, prepare, run, Docker build/compose, and dependency cleanup/reset.

Docker and Compose configuration:

  • Updated backend/Dockerfile to use the lighter node:24-alpine base image, reducing image size and improving build efficiency.
  • Modified backend/compose.dev.yml to use the locally built backend:latest image with pull_policy: never, facilitating local development without requiring remote image pulls.

TypeScript and code quality enhancements:

  • Improved type safety in SupabaseService by explicitly annotating the return types of the client and auth getters.
  • Updated @nestjs/swagger dependency in backend/package.json to use an exact version string for improved reproducibility.

Dependency and security updates:

  • Updated all references to the tsx package from 4.20.5 to 4.22.4 in pnpm-lock.yaml, and added it to the scripts workspace. [1] [2] [3]
  • Added new esbuild platform-specific packages and the latest esbuild@0.28.0 to pnpm-lock.yaml. [1] [2]
  • Marked several old versions of dependencies (glob, tar, @ungap/structured-clone) as deprecated due to security vulnerabilities, with recommendations to update. [1] [2] [3]

Morfusee added 6 commits June 7, 2026 18:22
The Dockerfile uses --no-frozen-lockfile (no lockfile in build context),
so pnpm installs the latest ^11.x which added an exports field that
hides ./dist/constants. The decorator package
@nanogiants/nestjs-swagger-api-exception-decorator imports this subpath,
causing ERR_PACKAGE_PATH_NOT_EXPORTED at runtime.

Also fixes node running .ts scripts by installing tsx and using it
for fetch-spec and docker-build recipes.
Uses pnpm --filter scripts docker-build which runs tsx
with --env-file=.env to load database credentials.
Switch FROM node:24 to node:24-alpine for the final stage
to eliminate unnecessary OS packages in the production image.
Set pull_policy: never and image: backend:latest so
docker compose uses the locally built image instead of
pulling from GHCR.
Client and auth getters lacked explicit return type
annotations, causing type inference failures in GitHub
Actions CI.
scripts/docker-build-backend.ts wraps docker build with
--build-arg for DATABASE_CLOUD_URL and DIRECT_CLOUD_URL,
invocable via 'just docker-build'.
scripts/.env.template documents the required env vars.
@Morfusee Morfusee self-assigned this Jun 7, 2026
@Morfusee
Morfusee merged commit fffddad into main Jun 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant