From 6552d7f50cd9cc4c95417ce13bf468885969dcc9 Mon Sep 17 00:00:00 2001 From: Braulio Date: Sun, 15 Feb 2026 12:45:17 +0100 Subject: [PATCH] update --- .github/workflows/deploy-functions.yml | 9 ++++----- packages/db-model/package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-functions.yml b/.github/workflows/deploy-functions.yml index f4095c0..388b80b 100644 --- a/.github/workflows/deploy-functions.yml +++ b/.github/workflows/deploy-functions.yml @@ -28,11 +28,10 @@ jobs: - name: Install dependencies run: npm ci - # Build the internal workspace package first. - # This ensures that TypeScript can resolve @embalse-info/db - # and that declaration files (.d.ts) exist before building functions. - - name: Build db package (types) - run: npm run -w @embalse-info/db build + # Build all workspace packages first (db, db-model, arcgis, etc.) + # This ensures all internal dependencies generate their dist and type declarations + - name: Build all internal packages + run: npm run build --workspaces --if-present # Build ONLY the functions workspace (TypeScript -> dist/) # This runs clean + type-check + build diff --git a/packages/db-model/package.json b/packages/db-model/package.json index 8c1d23b..ae697d3 100644 --- a/packages/db-model/package.json +++ b/packages/db-model/package.json @@ -10,7 +10,7 @@ "types": "./dist/index.d.ts", "scripts": { "build": "run-p clean type-check build:db-model", - "build:db-model": "tsc", + "build:db-model": "tsc -p tsconfig.json", "clean": "rimraf dist", "type-check": "tsc --noEmit --preserveWatchOutput" }