Skip to content

fix: augment @nuxt/schema rather than nuxt/schema#36

Open
danielroe wants to merge 1 commit intoTahul:mainfrom
danielroe:schema-augment
Open

fix: augment @nuxt/schema rather than nuxt/schema#36
danielroe wants to merge 1 commit intoTahul:mainfrom
danielroe:schema-augment

Conversation

@danielroe
Copy link
Contributor

@danielroe danielroe commented Sep 10, 2024

Context: nuxt/nuxt#28332

nuxt/schema is a re-export of @nuxt/schema for users to use. Modules should not augment it, or it may end up overwriting the inferred types from @nuxt/schema.

(We made the change in nuxt/module-builder#295 (released in v0.8.0 of @nuxt/module-builder) to avoid doing this in @nuxt/module-builder itself. This fix may require you merge #35 first to be effective.)

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