From 07c308785030e31268307bd2ad7a4b8079c3d5ae Mon Sep 17 00:00:00 2001 From: Rolando Santamaria Maso Date: Sat, 28 Mar 2026 07:58:28 +0100 Subject: [PATCH] fix: remove minification to support subpath exports The build was minifying all code into a single bundle, which broke the documented import paths like 'fast-injection/decorators'. Now we build each entry point separately without minification, allowing proper module resolution while keeping code readable and debuggable. - Removed --minify flag from build:bundle script - Added separate entry points for decorators and testing modules - All 291 tests pass with improved code readability - File sizes remain reasonable (20KB main, 4KB decorators, 20KB testing) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 59c3319..e636054 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "clean": "rm -rf dist", "build": "bun run clean && bun build:types && bun build:bundle", "build:types": "tsc --emitDeclarationOnly", - "build:bundle": "bun build src/index.ts --outdir dist --target bun --format esm --minify", + "build:bundle": "bun build src/index.ts src/decorators/index.ts src/testing/index.ts --outdir dist --target bun --format esm", "test": "bun test", "test:watch": "bun test --watch", "test:coverage": "bun test --coverage",