From e6221c5f0ecf6e13e9628d41cba5793189809a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Thu, 28 May 2026 15:41:24 +0200 Subject: [PATCH] Fix twenty sdk billing exports (#21016) Fix two omissions from #19973 that prevented `twenty-sdk/billing` from being a fully exported subpath: - `package.json`: add `billing` to `typesVersions` (every other subpath was listed; billing was the only one missing, breaking type resolution for consumers using classic TS moduleResolution). - `project.json`: add the billing vite build and `dist/billing` output to the `build:sdk` target --- packages/twenty-sdk/package.json | 3 +++ packages/twenty-sdk/project.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/twenty-sdk/package.json b/packages/twenty-sdk/package.json index f24605455a..e7fdcb0755 100644 --- a/packages/twenty-sdk/package.json +++ b/packages/twenty-sdk/package.json @@ -119,6 +119,9 @@ }, "typesVersions": { "*": { + "billing": [ + "dist/billing/index.d.ts" + ], "define": [ "dist/define/index.d.ts" ], diff --git a/packages/twenty-sdk/project.json b/packages/twenty-sdk/project.json index 3d334c2aff..aee221c796 100644 --- a/packages/twenty-sdk/project.json +++ b/packages/twenty-sdk/project.json @@ -92,6 +92,7 @@ "dependsOn": ["^build"], "inputs": ["{projectRoot}/src/sdk/**/*"], "outputs": [ + "{projectRoot}/dist/billing", "{projectRoot}/dist/define", "{projectRoot}/dist/front-component", "{projectRoot}/dist/logic-function", @@ -99,7 +100,7 @@ ], "options": { "cwd": "{projectRoot}", - "command": "npx vite build -c vite.config.define.ts && npx vite build -c vite.config.front-component.ts && npx vite build -c vite.config.logic-function.ts && npx vite build -c vite.config.utils.ts && npx rollup -c rollup.config.sdk-dts.mjs" + "command": "npx vite build -c vite.config.define.ts && npx vite build -c vite.config.billing.ts && npx vite build -c vite.config.front-component.ts && npx vite build -c vite.config.logic-function.ts && npx vite build -c vite.config.utils.ts && npx rollup -c rollup.config.sdk-dts.mjs" } } }