Changelog - 2026-10-18
Auto artifacts load the running tree
Bug FixIn one line. AutoArtifacts, ArtifactGroup.define and ArtifactGroup.application work for an application that runs its tsc dist, in development, in tests and in a binary.
What changed
- The registered class is the running class. The scan still reads
src, but each class is now loaded from the tree the application runs:dist/services/a.service.jsforsrc/services/a.service.ts, CommonJS or ESM. Before, an application runningdistregistered a second copy of every class, loaded fromsrc- module state, side effects andinstanceofchecks no longer matched the running code. - A stale build is an error. A class in
srcwith no compiled copy stops the start with an error asking for a rebuild. - Groups in a compiled tree. A shared package consumed through its
distdefines its groups there; they resolve the same way, andIgnisArtifactsPlugininlines them in a binary, including tsc's CommonJS output.
Who is affected
- Applications that run
distwith auto artifacts or groups. Upgrade; nothing else to change. For a binary, addIgnisArtifactsPlugin.create()to theBun.buildplugins. - Applications that run
src. No change.
Files: packages/boot/src/bun/sources.ts, packages/boot/src/bun/plugin.ts