Skip to content

WIP: coupling stack — v1 on v0#8

Closed
jycouet wants to merge 7 commits intochore/coupling-v0from
chore/coupling-v1
Closed

WIP: coupling stack — v1 on v0#8
jycouet wants to merge 7 commits intochore/coupling-v0from
chore/coupling-v1

Conversation

@jycouet
Copy link
Copy Markdown
Owner

@jycouet jycouet commented Apr 4, 2026

WIP track surface API.

  • v0 — API surface generator (scripts/generate-api-surface.js), tsdown build:done hook, and generated api-surface.md snapshots only (on top of main).
  • v1 — Full coupling work on top of v0: file helpers refactor, type/DTS trimming (yaml, dedent, pm), alignment, etc.
  • v2 (separate PR) — Remove deprecated readFile / writeFile / getPackageJson re-exports from @sveltejs/sv-utils.

This PR is v1 → v0 so the diff shows everything beyond the API-surface baseline.

Made with Cursor

jycouet added 7 commits April 4, 2026 12:29
Wire generateApiSurface into each config's build:done (with a shared
counter so it runs once after all parallel builds). Add scripts/
generate-api-surface.js (strip regions, sourceMappingURL, optional JSDoc;
keep @deprecated blocks).

Made-with: Cursor
Snapshots from built .d.mts (baseline before coupling/deprecation work).

Made-with: Cursor
- sv-utils: add loadFile, saveFile, loadPackageJson; deprecate readFile,
  writeFile, getPackageJson; remove installPackages (logic lives in sv engine).
- sv: inline updatePackages in engine; use new helpers; drop deprecated
  workspace.file paths; addons use string literals; remove stale @deprecated
  on processors/create exports.
- Regenerate api-surface snapshots.

Made-with: Cursor
@jycouet
Copy link
Copy Markdown
Owner Author

jycouet commented Apr 4, 2026

Closing: this v1→v0 diff mixed api-surface fmt and other commits, so generate-api-surface.js showed up incorrectly.

Use instead:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant