From 33484dc02059293ca4c1f4773a2fd8d6bc7628fe Mon Sep 17 00:00:00 2001 From: Kevin Riehl Date: Wed, 6 May 2026 17:26:09 -0700 Subject: [PATCH] Fix backend image: include dist/ in the pnpm-deploy bundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 0.1.1 image published with no dist/ at all and crashed on startup (`Cannot find module '/app/dist/main'`). Cause: pnpm deploy uses pnpm pack file selection, which honors .gitignore. The repo's root .gitignore excludes dist/, so pnpm correctly omitted the compiled JavaScript from the deploy bundle — but that's exactly what the runtime needs. Add an explicit `files` field to the backend's package.json listing dist/ and prisma/. With `files` set, pnpm pack/deploy includes those paths verbatim regardless of gitignore. Bump 0.1.1 → 0.1.2; 0.1.1 is now occupied in Harbor by the broken unrunnable image. Co-Authored-By: Claude Opus 4.7 (1M context) --- tehriehlbudget-backend/package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tehriehlbudget-backend/package.json b/tehriehlbudget-backend/package.json index 37ae090..b987b78 100644 --- a/tehriehlbudget-backend/package.json +++ b/tehriehlbudget-backend/package.json @@ -1,10 +1,14 @@ { "name": "tehriehlbudget-backend", - "version": "0.1.1", + "version": "0.1.2", "description": "", "author": "", "private": true, "license": "UNLICENSED", + "files": [ + "dist", + "prisma" + ], "scripts": { "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",