From 2b0b902ba3e6757e205f49dae3f32f4073ba6137 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 26 Mar 2026 20:03:22 +0100 Subject: [PATCH] fix(credit-operations): point package exports to compiled dist/ instead of raw src/ The package.json was pointing main/exports to src/index.ts which crashes in production Docker containers where Node runs CJS and can't handle ESM export tokens. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/credit-operations/package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/credit-operations/package.json b/packages/credit-operations/package.json index c5683cf48..22af8fcae 100644 --- a/packages/credit-operations/package.json +++ b/packages/credit-operations/package.json @@ -3,13 +3,12 @@ "version": "1.0.0", "private": true, "description": "Central credit operation definitions and costs for all Mana apps", - "main": "src/index.ts", - "types": "src/index.ts", + "main": "dist/index.js", + "types": "dist/index.d.ts", "exports": { ".": { - "types": "./src/index.ts", - "import": "./src/index.ts", - "default": "./src/index.ts" + "types": "./dist/index.d.ts", + "default": "./dist/index.js" } }, "scripts": {