From 79b5238d9fa84ec2a80e92f166163b2a443922d3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 5 Dec 2024 16:04:23 +0100 Subject: [PATCH] Fix backend-core build --- packages/backend-core/package.json | 2 +- packages/backend-core/tsconfig.build.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index 85d401de8c..32eb4c03a3 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -21,7 +21,7 @@ "scripts": { "prebuild": "rimraf dist/", "prepack": "cp package.json dist", - "build": "tsc -p tsconfig.build.json --paths null && node ./scripts/build.js", + "build": "node ./scripts/build.js && tsc -p tsconfig.build.json --emitDeclarationOnly --paths null", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", "build:oss": "node ./scripts/build.js", "check:types": "tsc -p tsconfig.json --noEmit --paths null --target es2020", diff --git a/packages/backend-core/tsconfig.build.json b/packages/backend-core/tsconfig.build.json index a5ffd6956a..45652a0354 100644 --- a/packages/backend-core/tsconfig.build.json +++ b/packages/backend-core/tsconfig.build.json @@ -1,6 +1,8 @@ { "extends": "../../tsconfig.build.json", - "include": ["**/*.js", "**/*.ts"], + "compilerOptions": { + "outDir": "dist" + }, "exclude": [ "node_modules", "dist",