From f556665ac2b6f23a334bfcd454662d5f31cb9c50 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:19:39 +0100 Subject: [PATCH] fix(shared-nestjs-setup): export compiled JS instead of TypeScript The package was incorrectly exporting src/index.ts which causes runtime errors when used with plain Node.js. Changed to export from dist/. Co-Authored-By: Claude Opus 4.5 --- packages/shared-nestjs-setup/package.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/shared-nestjs-setup/package.json b/packages/shared-nestjs-setup/package.json index faae82cc8..170b324a6 100644 --- a/packages/shared-nestjs-setup/package.json +++ b/packages/shared-nestjs-setup/package.json @@ -2,11 +2,17 @@ "name": "@manacore/shared-nestjs-setup", "version": "1.0.0", "description": "Shared NestJS bootstrap utilities for ManaCore backends", - "main": "./src/index.ts", - "types": "./src/index.ts", + "main": "dist/index.js", + "types": "dist/index.d.ts", "exports": { - ".": "./src/index.ts" + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, + "files": [ + "dist" + ], "scripts": { "build": "tsc", "type-check": "tsc --noEmit"