From 14e4656fe3b00268a1431436a7de5a917fde35f1 Mon Sep 17 00:00:00 2001 From: martmull Date: Wed, 24 Jun 2026 20:00:59 +0200 Subject: [PATCH] Update TypeScript moduleResolution to bundler (#22127) ## Summary Updates the TypeScript `moduleResolution` configuration from `"node"` to `"bundler"` across template and example tsconfig files. This aligns with modern TypeScript best practices for bundler-based projects. ## Changes - Updated `moduleResolution` setting in `packages/create-twenty-app/src/constants/template/tsconfig.json` - Updated `moduleResolution` setting in `packages/twenty-apps/examples/hello-world/tsconfig.json` - Updated `moduleResolution` setting in `packages/twenty-apps/examples/postcard/tsconfig.json` ## Details The `"bundler"` module resolution strategy is the recommended approach for projects using modern bundlers (Vite, Webpack, etc.) as it provides better compatibility with ESM and package.json exports field resolution. This change ensures that new projects created from the template and example applications follow current TypeScript best practices. https://claude.ai/code/session_01XBdmaN1bpnE7DiH1XwBuX4 --- packages/create-twenty-app/src/constants/template/tsconfig.json | 2 +- packages/twenty-apps/examples/hello-world/tsconfig.json | 2 +- packages/twenty-apps/examples/postcard/tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/create-twenty-app/src/constants/template/tsconfig.json b/packages/create-twenty-app/src/constants/template/tsconfig.json index d574c8c810..f71645f97a 100644 --- a/packages/create-twenty-app/src/constants/template/tsconfig.json +++ b/packages/create-twenty-app/src/constants/template/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "./dist", "rootDir": ".", "jsx": "react-jsx", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, diff --git a/packages/twenty-apps/examples/hello-world/tsconfig.json b/packages/twenty-apps/examples/hello-world/tsconfig.json index f4661f0ffd..83342568e5 100644 --- a/packages/twenty-apps/examples/hello-world/tsconfig.json +++ b/packages/twenty-apps/examples/hello-world/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "./dist", "rootDir": ".", "jsx": "react-jsx", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, diff --git a/packages/twenty-apps/examples/postcard/tsconfig.json b/packages/twenty-apps/examples/postcard/tsconfig.json index 27f0c39cc1..20c8d89f95 100644 --- a/packages/twenty-apps/examples/postcard/tsconfig.json +++ b/packages/twenty-apps/examples/postcard/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "./dist", "rootDir": ".", "jsx": "react-jsx", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "emitDecoratorMetadata": true, "experimentalDecorators": true,