Skip to content

fix(plugin-types): build to dist so runtime value imports work - #91

Merged
Kavin-Charles merged 1 commit into
mainfrom
fix/plugin-types-runtime-build
Jul 19, 2026
Merged

fix(plugin-types): build to dist so runtime value imports work#91
Kavin-Charles merged 1 commit into
mainfrom
fix/plugin-types-runtime-build

Conversation

@Kavin-Charles

Copy link
Copy Markdown
Collaborator

The 0.2.0 api image crash-loops: hub-sections.js value-imports SLOT_CATALOG from @vencore/plugin-types, whose main pointed at raw TS source. Type-only imports never hit this; the new route is the first runtime value import, so node tried to require a .ts file and died ("Unexpected token 'export'").

  • @vencore/plugin-types now builds to dist with a proper main/types, like every other package
  • Verified: node -e "require('./apps/api/dist/routes/hub-sections.js')" loads clean; full build 11/11; 396/396 api tests

main pointed at raw TS source; type-only imports were fine but the new
hub-sections route value-imports SLOT_CATALOG, and node crashed requiring
a .ts file in the production image. Build the package like the others.
Copilot AI review requested due to automatic review settings July 19, 2026 22:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Kavin-Charles
Kavin-Charles merged commit 1e38223 into main Jul 19, 2026
5 checks passed
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.

2 participants