From 0856d73473c8effccd7c29ea332f6ccee2c37c2c Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Tue, 16 Jul 2024 00:35:10 -0800 Subject: [PATCH] fix ts problems --- packages/temporal-workflows/package.json | 2 +- packages/temporal-workflows/tsconfig.json | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/temporal-workflows/package.json b/packages/temporal-workflows/package.json index e4dbc45..67d34fc 100644 --- a/packages/temporal-workflows/package.json +++ b/packages/temporal-workflows/package.json @@ -8,7 +8,7 @@ "./activities.js": "./dist/activities.js" }, "scripts": { - "build": "tsc --build", + "build": "tsc --build ./tsconfig.json", "build.watch": "tsc --build -w --preserveWatchOutput", "lint": "eslint ." }, diff --git a/packages/temporal-workflows/tsconfig.json b/packages/temporal-workflows/tsconfig.json index 7d35804..edd60f5 100644 --- a/packages/temporal-workflows/tsconfig.json +++ b/packages/temporal-workflows/tsconfig.json @@ -12,17 +12,20 @@ "strict": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, // Transpile our TypeScript code to JavaScript "module": "NodeNext", - "outDir": "dist", + "outDir": "./dist", "lib": [ "es2022" - ] + ], + "rootDir": "src" }, // Include the necessary files for your project "include": [ - "**/*.ts", - "**/*.tsx" + "src/**/*.ts" ], "exclude": [ "node_modules"