nuxt-modules / plausible

🎟️ Plausible Analytics integration for Nuxt
https://plausible.io
MIT License
107 stars 7 forks source link

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

Closed danielroe closed 12 months ago

danielroe commented 12 months ago

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. (https://github.com/nuxt/module-builder/pull/124)

It's the default for new modules (https://github.com/nuxt/starter/pull/392).

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

johannschopplich commented 12 months ago

Thanks a lot for the input! Good to know. Will change it in my other modules as well. 🙂