From 850c20232504402dfbf8b10ce9e46f3e53b5b987 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 26 Aug 2026 08:05:50 +0300 Subject: [PATCH] fix(build): point tsc-alias at tsconfig.build.json Without -p, tsc-alias falls back to tsconfig.json, whose rootDir is "./" (it also includes tests/ and scripts/). It therefore looked for emitted files under dist/src/** and matched nothing, while tsc -p tsconfig.build.json emits to dist/** with rootDir ./src. The result was a silent no-op: dist/app.js kept raw aliases such as require("@plugins/env.plugin"), so pnpm start crashed with MODULE_NOT_FOUND. pnpm dev was unaffected because tsx resolves the aliases at runtime. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01GgfZaJS1UU5VVfmMeL2CRT --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 616517c..d3f50c7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "dev": "cross-env NODE_ENV=development tsx watch src/index.ts", - "build": "tsc -p tsconfig.build.json && tsc-alias", + "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "start": "cross-env NODE_ENV=production node dist/index.js", "lint": "eslint \"src/**/*.ts\"", "lint:fix": "eslint \"src/**/*.ts\" --fix",