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 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-02 16:19:39 +01:00
parent ad22d264aa
commit f556665ac2

View file

@ -2,11 +2,17 @@
"name": "@manacore/shared-nestjs-setup", "name": "@manacore/shared-nestjs-setup",
"version": "1.0.0", "version": "1.0.0",
"description": "Shared NestJS bootstrap utilities for ManaCore backends", "description": "Shared NestJS bootstrap utilities for ManaCore backends",
"main": "./src/index.ts", "main": "dist/index.js",
"types": "./src/index.ts", "types": "dist/index.d.ts",
"exports": { "exports": {
".": "./src/index.ts" ".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}, },
"files": [
"dist"
],
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit"