fix: configure nest build to use tsc compiler directly
Some checks failed
CI/CD Pipeline / Integration Tests (push) Blocked by required conditions
CI/CD Pipeline / Deployment Summary (push) Blocked by required conditions
CI/CD Pipeline / Backend - Build, Test & Push (push) Has been cancelled
CI/CD Pipeline / Frontend - Build, Test & Push (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Integration Tests (push) Blocked by required conditions
CI/CD Pipeline / Deployment Summary (push) Blocked by required conditions
CI/CD Pipeline / Backend - Build, Test & Push (push) Has been cancelled
CI/CD Pipeline / Frontend - Build, Test & Push (push) Has been cancelled
- Set explicit "builder": "tsc" in nest-cli.json - Simplified tsconfig.build.json to only extend base config - Updated build script back to `nest build && tsc-alias` This ensures NestJS uses the TypeScript compiler that properly respects path mappings in tsconfig.json. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a0863d19ac
commit
8b20a7e548
@ -4,10 +4,8 @@
|
||||
"sourceRoot": "src",
|
||||
"compilerOptions": {
|
||||
"deleteOutDir": true,
|
||||
"webpack": false,
|
||||
"builder": "tsc",
|
||||
"tsConfigPath": "tsconfig.build.json",
|
||||
"plugins": ["@nestjs/swagger"],
|
||||
"assets": [],
|
||||
"watchAssets": false
|
||||
"plugins": ["@nestjs/swagger"]
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,8 +4,7 @@
|
||||
"description": "Xpeditis Backend API - Maritime Freight Booking Platform",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
||||
"build:nest": "nest build && tsc-alias",
|
||||
"build": "nest build && tsc-alias -p tsconfig.build.json",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"start": "nest start",
|
||||
"dev": "nest start --watch",
|
||||
|
||||
@ -1,12 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@domain/*": ["src/domain/*"],
|
||||
"@application/*": ["src/application/*"],
|
||||
"@infrastructure/*": ["src/infrastructure/*"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user