*Territory · 2 understandings*
## Summary
On Mar 29, 2026, the CJS files were already being built by tsup but were not declared in the package.json exports map, and missing CJS require entries for 7 subpath exports broke any CommonJS consumer importing those subpaths.
## Explanation
- On Mar 29, 2026, the CJS files were already being built by tsup but were not declared in the package.json exports map.
- The CJS files were already being built by tsup but were not declared in the package.json exports map.
- Missing CJS require entries for 7 subpath exports broke any CommonJS consumer (Jest, n8n, etc.) importing these subpaths.
- Missing CJS require entries for 7 subpath exports broke any CommonJS consumer (Jest, n8n, etc.) importing these subpaths.
## Threads
- The CJS files tsup already builds and the package.json exports map that does not declare them
- The CJS files were already being built by tsup but were not declared in the package.json exports map.
- The 7 subpath exports with no CJS require entry, and the CommonJS consumers left broken
- Missing CJS require entries for 7 subpath exports broke any CommonJS consumer (Jest, n8n, etc.) importing these subpaths.
## What's still open
The exports map still lacks the CJS require entries for 7 subpath exports, so CommonJS consumers importing those subpaths stay broken.
- The CJS files were already being built by tsup but were not declared in the package.json exports map.
- Missing CJS require entries for 7 subpath exports broke any CommonJS consumer (Jest, n8n, etc.) importing these subpaths.
## Consultant
**Where it shows up** — The package.json exports map is the sticking point: tsup already emits the CJS files, yet the map leaves out the require entries for 7 subpath exports.
**A way forward** — Keep the tsup build as it is and add the missing require entries for the 7 subpath exports to the exports map, then import one subpath from a CommonJS context to see it resolve.
## Understandings
- The CJS files were already being built by tsup but were not declared in the package.json exports map. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #76 fix- add missing CJS require entries fo|NeuroverseOS/Neuroverseos-governance #76 fix: add missing CJS require entries fo]] — 2026-03-28
- Missing CJS require entries for 7 subpath exports broke any CommonJS consumer (Jest, n8n, etc.) importing these subpaths. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #76 fix- add missing CJS require entries fo|NeuroverseOS/Neuroverseos-governance #76 fix: add missing CJS require entries fo]] — 2026-03-28
## Who, where and what
Things: [[Bevia/World/Things/Jest|Jest]], [[Bevia/World/Things/n8n|n8n]], [[Bevia/World/Things/package.json|package.json]], [[Bevia/World/Things/tsup|tsup]]