Skip to content

chore: use module-builder stub mode for more accurate types#188

Merged
Baroshem merged 1 commit intomainfrom
module-stub
Apr 8, 2024
Merged

chore: use module-builder stub mode for more accurate types#188
Baroshem merged 1 commit intomainfrom
module-stub

Conversation

@danielroe
Copy link
Copy Markdown
Contributor

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

We added a prepare command for nuxt-module-build which allows creating type stubs directly from the module without needing to apply to the playground as well. (nuxt/module-builder#124)

It's the default for new modules (nuxt/starter#392).

This should allow us to match types more appropriately for module authors (for example, disallowing auto-imports) in future.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@Baroshem Baroshem merged commit c248e56 into main Apr 8, 2024
@danielroe danielroe deleted the module-stub branch April 8, 2024 12:20
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