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.
This commit is contained in:
45
tasks/016-build-and-exports-validation.md
Normal file
45
tasks/016-build-and-exports-validation.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
id: build-and-exports-validation
|
||||
name: Validate build, package.json exports, and tsup config for all adapters
|
||||
status: pending
|
||||
depends_on: []
|
||||
scope: narrow
|
||||
risk: low
|
||||
impact: component
|
||||
level: 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
|
||||
Reference in New Issue
Block a user