From c89cc3872965380eb1df5317d22ffbde1d5b1eb2 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:56:42 +0100 Subject: [PATCH] [MISC] Twenty-shared build `declaration` and `declarationMap` tsconfig (#9838) # Motivations By adding the declaration and declaration mapping this allows a better `go to source` in our IDE Should also be done for https://github.com/twentyhq/core-team-issues/issues/281 ## FROM https://github.com/user-attachments/assets/5cc307d0-b2dc-46bf-b61f-0731015c4a30 ## TO https://github.com/user-attachments/assets/5ed1d7af-2716-435d-a1b8-6738b5a77956 ## Notes Might be interesting to add global commands for: - watch mode for `twenty-ui` and `twenty-shared` - clean, output folders such as `dist` and `node_modules` and so on --- packages/twenty-shared/tsconfig.lib.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/twenty-shared/tsconfig.lib.json b/packages/twenty-shared/tsconfig.lib.json index 3b7e0fe35..90abc8d4f 100644 --- a/packages/twenty-shared/tsconfig.lib.json +++ b/packages/twenty-shared/tsconfig.lib.json @@ -1,6 +1,8 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declaration": true, + "declarationMap": true, "outDir": "../../.cache/tsc", "types": [ "node",