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",