Skip to content

fix(build): externalize lazily-imported optional drivers (unbreak main from #1524)#1525

Merged
xuyushun441-sys merged 1 commit into
mainfrom
fix/build-externalize-optional-drivers
Jun 2, 2026
Merged

fix(build): externalize lazily-imported optional drivers (unbreak main from #1524)#1525
xuyushun441-sys merged 1 commit into
mainfrom
fix/build-externalize-optional-drivers

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

What

Unbreaks main: #1524 (the fixed-group major-cascade fix) moved optional internal @objectstack/* peerDependencies off peer, after which tsup stopped auto-externalizing them and began bundling the lazily await import()-ed driver packages — pulling in their optional native clients (mysql / oracledb via knex) and failing the build for service-datasource and plugin-dev.

Fix

  • service-datasource: externalize @objectstack/driver-* in tsup (drivers stay devDeps for tests, never bundled — preserves their optionality).
  • plugin-dev: move framework packages from devDeps to dependencies (tsup auto-externalizes deps; dev-only plugin, so hard deps are fine).

Neither re-introduces the major cascade (regular deps/devDeps don't cascade; only peerDeps did).

Verification

Full pnpm build 71/71 green; changeset status still 0 major (next release 7.6.0).

🤖 Generated with Claude Code

…n from #1524)

#1524 moved optional internal @objectstack peerDependencies off `peer`; tsup then
bundled the lazily await-import()'d driver packages and hit their optional native
deps (mysql/oracledb via knex) → build failure for service-datasource & plugin-dev.

- service-datasource: tsup `external: [/^@objectstack\/driver-/]` (drivers stay
  devDeps for tests, never bundled).
- plugin-dev: framework packages devDeps → dependencies (tsup auto-externalizes
  deps; dev-only plugin, force-install is fine).

Verified: full `pnpm build` 71/71 green; `changeset status` still 0 major (7.6.0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Building Building Preview, Comment Jun 2, 2026 6:17am

Request Review

@xuyushun441-sys xuyushun441-sys merged commit bb04824 into main Jun 2, 2026
8 of 9 checks passed
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tooling size/s and removed documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tooling labels Jun 2, 2026
@xuyushun441-sys xuyushun441-sys deleted the fix/build-externalize-optional-drivers branch June 2, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants