nuxt-modules / design-tokens

Design tokens module for Nuxt
https://design-tokens.nuxtjs.org
MIT License
50 stars 3 forks source link

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

Open danielroe opened 11 months ago

danielroe commented 11 months ago

πŸ”— Linked issue

❓ Type of 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. (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.

Note: I've not updated the root tsconfig.json but you could now extend it from .nuxt/tsconfig.json

πŸ“ Checklist