Skip to content

Add package type verification script, update exports, and enhance workflows#368

Merged
srozen merged 1 commit intomainfrom
hotfix/fix-generated-build
Apr 16, 2026
Merged

Add package type verification script, update exports, and enhance workflows#368
srozen merged 1 commit intomainfrom
hotfix/fix-generated-build

Conversation

@srozen
Copy link
Copy Markdown
Contributor

@srozen srozen commented Apr 16, 2026

Fix a misconfiguration of exports that led to bugs using the network layer

  • Introduced verify-package-types.mjs to validate subpath exports and declarations.
  • Enhanced package.json exports with type paths for improved type safety.
  • Updated vite.config.ts to generate declaration entrypoints.
  • Integrated package-type verification into CI workflows and contributor documentation.

…ce workflows

- Introduced `verify-package-types.mjs` to validate subpath exports and declarations.
- Enhanced `package.json` exports with type paths for improved type safety.
- Updated `vite.config.ts` to generate declaration entrypoints.
- Integrated package-type verification into CI workflows and contributor documentation.
@srozen srozen requested review from ALambot, Copilot and fsouris April 16, 2026 09:28
@srozen srozen self-assigned this Apr 16, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR strengthens the Vue package’s published TypeScript surface by generating explicit declaration entrypoints for each exported subpath and adding a CI smoke test that validates the packed artifact’s declarations match package.json exports.

Changes:

  • Added verify-package-types.mjs to pack the Vue workspace and smoke-test published .d.ts subpath exports via vue-tsc.
  • Updated package.json exports to include explicit types paths for . and subpath entrypoints.
  • Updated the Vite build to generate declaration entrypoint stubs and integrated the verification into CI and contributor docs.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vue/vite.config.ts Adds multi-entry library config constants and a build plugin that writes dist/*.d.ts entrypoints; adjusts vite-plugin-dts settings.
vue/scripts/verify-package-types.mjs New script that packs the workspace, inspects declarations, and runs a vue-tsc smoke test against the installed tarball.
vue/package.json Adds exports.*.types mappings and a new test:package-types script.
vue/README.md Documents the new test:package-types command.
vue/CONTRIBUTE.md Adds the new package-types check to contributor quality gates guidance.
.github/workflows/vue.yml Adds a new CI job to run npm run test:package-types.
.github/workflows/release.yml Adds a pre-publish step to verify packaged type declarations during release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vue/vite.config.ts
Comment thread vue/vite.config.ts
Comment thread vue/scripts/verify-package-types.mjs
Comment thread vue/scripts/verify-package-types.mjs
@srozen
Copy link
Copy Markdown
Contributor Author

srozen commented Apr 16, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@srozen srozen merged commit 2393091 into main Apr 16, 2026
19 checks passed
@srozen srozen deleted the hotfix/fix-generated-build branch April 16, 2026 09:54
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.

4 participants