Tahul / nuxt-edgedb

💽 Nuxt 3 integration for EdgeDB
71 stars 7 forks source link

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

Open danielroe opened 2 months ago

danielroe commented 2 months ago

Context: https://github.com/nuxt/nuxt/issues/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 https://github.com/nuxt/module-builder/pull/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 https://github.com/Tahul/nuxt-edgedb/pull/35 first to be effective.)