From 85ea90b9c8e80be5bd0f841a24679ade9aca9d00 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 20 Feb 2026 18:49:22 +0100 Subject: [PATCH] Rollback failing API deployment --- backend/api/package.json | 4 ++-- backend/api/tsconfig.json | 14 ++++++++++++++ backend/email/tsconfig.json | 5 +++++ backend/shared/tsconfig.json | 8 ++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/backend/api/package.json b/backend/api/package.json index b7249d78..147dc5ed 100644 --- a/backend/api/package.json +++ b/backend/api/package.json @@ -5,13 +5,13 @@ "private": true, "scripts": { "watch:serve": "tsx watch src/serve.ts", - "watch:compile": "npx concurrently \"(cd ../../common && tsc --watch)\" \"(cd ../shared && tsc --watch)\" \"(cd ../email && tsc --watch)\" \"tsc --watch --preserveWatchOutput\" \"tsc-alias --watch\" \"(cd ../../common && tsc-alias --watch)\" \"(cd ../shared && tsc-alias --watch)\" \"(cd ../email && tsc-alias --watch)\"", + "watch:compile": "npx concurrently \"tsc -b --watch --preserveWatchOutput\" \"(cd ../../common && tsc-alias --watch)\" \"(cd ../shared && tsc-alias --watch)\" \"(cd ../email && tsc-alias --watch)\" \"tsc-alias --watch\"", "dev": "yarn watch:serve", "prod": "npx concurrently -n COMPILE,SERVER -c cyan,green \"yarn watch:compile\" \"yarn watch:serve\"", "build": "yarn compile && yarn dist:clean && yarn dist:copy", "build:fast": "yarn compile && yarn dist:copy", "clean": "rm -rf lib && (cd ../../common && rm -rf lib) && (cd ../shared && rm -rf lib) && (cd ../email && rm -rf lib)", - "compile": "(cd ../../common && tsc) && (cd ../shared && tsc) && (cd ../email && tsc) && tsc && tsc-alias && (cd ../../common && tsc-alias) && (cd ../shared && tsc-alias) && (cd ../email && tsc-alias) && cp -r src/public/ lib/", + "compile": "tsc -b && tsc-alias && (cd ../../common && tsc-alias) && (cd ../shared && tsc-alias) && (cd ../email && tsc-alias) && cp -r src/public/ lib/", "debug": "nodemon -r tsconfig-paths/register --watch src -e ts --watch ../../common/src --watch ../shared/src --exec \"yarn build && node --inspect-brk src/serve.ts\"", "dist": "yarn dist:clean && yarn dist:copy", "dist:clean": "rm -rf dist && mkdir -p dist/common/lib dist/backend/shared/lib dist/backend/api/lib dist/backend/email/lib", diff --git a/backend/api/tsconfig.json b/backend/api/tsconfig.json index 348df297..036e85b7 100644 --- a/backend/api/tsconfig.json +++ b/backend/api/tsconfig.json @@ -1,8 +1,11 @@ { "compilerOptions": { + "rootDir": "src", + "composite": true, "module": "commonjs", "noImplicitReturns": true, "outDir": "./lib", + "tsBuildInfoFile": "lib/tsconfig.tsbuildinfo", "sourceMap": true, "strict": true, "resolveJsonModule": true, @@ -21,6 +24,17 @@ "ts-node": { "require": ["tsconfig-paths/register"] }, + "references": [ + { + "path": "../../common" + }, + { + "path": "../shared" + }, + { + "path": "../email" + } + ], "compileOnSave": true, "include": ["src/**/*.ts", "package.json", "backend/api/package.json"], "exclude": ["**/*.test.ts", "**/*.spec.ts"] diff --git a/backend/email/tsconfig.json b/backend/email/tsconfig.json index ca1ef0fc..6c7db722 100644 --- a/backend/email/tsconfig.json +++ b/backend/email/tsconfig.json @@ -1,9 +1,12 @@ { "compilerOptions": { + "rootDir": "emails", + "composite": true, "module": "commonjs", "moduleResolution": "node", "noImplicitReturns": true, "outDir": "lib", + "tsBuildInfoFile": "lib/tsconfig.tsbuildinfo", "sourceMap": true, "strict": true, "esModuleInterop": true, @@ -12,6 +15,7 @@ "allowJs": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, + "incremental": true, "resolveJsonModule": true, "isolatedModules": false, "declaration": true, @@ -25,5 +29,6 @@ "ts-node": { "require": ["tsconfig-paths/register"] }, + "references": [{"path": "../../common"}, {"path": "../shared"}], "include": ["emails/**/*.ts", "emails/**/*.tsx"] } diff --git a/backend/shared/tsconfig.json b/backend/shared/tsconfig.json index 7bd3e6c3..94aa52da 100644 --- a/backend/shared/tsconfig.json +++ b/backend/shared/tsconfig.json @@ -1,9 +1,12 @@ { "compilerOptions": { + "rootDir": "src", + "composite": true, "module": "commonjs", "moduleResolution": "node", "noImplicitReturns": true, "outDir": "lib", + "tsBuildInfoFile": "lib/tsconfig.tsbuildinfo", "sourceMap": true, "strict": true, "target": "esnext", @@ -19,6 +22,11 @@ "ts-node": { "require": ["tsconfig-paths/register"] }, + "references": [ + { + "path": "../../common" + } + ], "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["**/*.test.ts", "**/*.spec.ts"] }