What to build
Set up the build and publish pipeline for @sundayceo/framework. The package uses tsup to compile TypeScript to ESM and generate declaration files, with subpath exports for the main entry and the Vite plugin.
Configure:
tsup.config.ts with two entry points: src/core/index.ts and src/vite/index.ts
- ESM output only (no CJS — modern Node/Vite ecosystem)
- Declaration file generation (
.d.ts)
package.json exports map:
"." → core runtime
"./vite" → Vite plugin
peerDependencies for react, react-dom, vite
files field to control what gets published
- Verify the built package works: import from both entry points in a test consumer
Acceptance criteria
Blocked by
What to build
Set up the build and publish pipeline for
@sundayceo/framework. The package uses tsup to compile TypeScript to ESM and generate declaration files, with subpath exports for the main entry and the Vite plugin.Configure:
tsup.config.tswith two entry points:src/core/index.tsandsrc/vite/index.ts.d.ts)package.jsonexports map:"."→ core runtime"./vite"→ Vite pluginpeerDependenciesforreact,react-dom,vitefilesfield to control what gets publishedAcceptance criteria
tsup.config.tsbuilds both entry points.d.tsdeclaration filespackage.jsonhas correctexportsmap for.and./vitepeerDependenciesdeclared for react, react-dom, vitefilesfield excludes tests, playground, configspnpm run buildinpackages/frameworksucceedsnpm pack --dry-runshows correct file listBlocked by