Skip to content

fix: exclude demo .vue files from library type-check so fresh builds … - #305

Merged
NelsonYong merged 1 commit into
masterfrom
fix/fresh-env-build
Jun 11, 2026
Merged

NelsonYong merged 1 commit into
masterfrom
fix/fresh-env-build

Conversation

@NelsonYong

Copy link
Copy Markdown
Contributor

…pass

vue-tsc in packages/hooks type-checked src/**/demo/*.vue, but several useRequest plugin demos import @vue-hooks-plus/use-request-plugins, whose published types only exist after that sibling package is built. Since addon packages depend on vue-hooks-plus, hooks always builds first in 'pnpm recursive exec', so a fresh checkout (and CI) could never build: vue-tsc failed on those demos with 7 type errors.

Demos are documentation material compiled by vitepress's own pipeline and are not part of the published artifacts, so the library build should not gate on them. Verified: 'pnpm build' now succeeds from a fully clean state (no dist/es/lib anywhere); 319/319 tests and the 80% coverage gate still pass.

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Follow our Code of Conduct
  • Read the Contributing Guidelines
  • Read the docs
  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

…pass

vue-tsc in packages/hooks type-checked src/**/demo/*.vue, but several
useRequest plugin demos import @vue-hooks-plus/use-request-plugins,
whose published types only exist after that sibling package is built.
Since addon packages depend on vue-hooks-plus, hooks always builds
first in 'pnpm recursive exec', so a fresh checkout (and CI) could
never build: vue-tsc failed on those demos with 7 type errors.

Demos are documentation material compiled by vitepress's own
pipeline and are not part of the published artifacts, so the library
build should not gate on them. Verified: 'pnpm build' now succeeds
from a fully clean state (no dist/es/lib anywhere); 319/319 tests and
the 80% coverage gate still pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NelsonYong
NelsonYong merged commit f4279cf into master Jun 11, 2026
12 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.

1 participant