Files
pubsub/tasks/016-build-and-exports-validation.md
glm-5.1 1306716897 Decompose architecture into atomic, dependency-ordered tasks
19 tasks covering core testing, Redis hardening, WebSocket client/server
adapters, Worker adapter, and final review gates. Iroh adapters are tracked
as a deferred placeholder blocked on the @alkdev/iroh fork.

Phases: core validation → Redis hardening → review gate → WebSocket
adapters → review gate → Worker adapter → review gate → final validation.
2026-05-08 05:50:43 +00:00

1.5 KiB

id, name, status, depends_on, scope, risk, impact, level
id name status depends_on scope risk impact level
build-and-exports-validation Validate build, package.json exports, and tsup config for all adapters pending
narrow low component implementation

Description

Verify that the build pipeline correctly produces dual ESM + CJS output with declarations for all entry points, and that package.json exports map and tsup.config.ts entries are consistent.

Currently only src/index.ts and src/event-target-redis.ts are entry points. As new adapters are added, each needs:

  1. An entry in tsup.config.ts entry array
  2. A sub-path export in package.json exports map (ESM + CJS + declarations)
  3. A barrel re-export in src/index.ts

This task validates the current setup and serves as a checklist item for each adapter task. It can be done early and re-verified as adapters are added.

Acceptance Criteria

  • npm run build produces correct output for existing entry points (index, event-target-redis)
  • npm run lint (tsc --noEmit) passes
  • package.json exports map has correct ESM/CJS/dts paths for each entry point
  • tsup.config.ts lists all current entry points
  • src/index.ts re-exports everything from all modules
  • Peer dependencies and peerDependenciesMeta are correct
  • No runtime dependencies (Repeater is inlined)

References

  • docs/architecture/build-distribution.md
  • package.json
  • tsup.config.ts

Notes

To be filled by implementation agent

Summary

To be filled on completion