nuxt / scripts

Plug-and-play script optimization for Nuxt applications. (Public Preview)
https://scripts.nuxt.com
MIT License
126 stars 8 forks source link

fix: don't use aliases in build-time files #57

Closed huang-julien closed 1 month ago

huang-julien commented 1 month ago

Currently using build-time types prevent having good strict types in module integrations.

This is due to @nuxt/scripts importing #nuxt-scripts alias in type declaration which typescript cannot be aware of, except if the module author extends its tsconfig from a playground tsconfig (but this brings other issues)

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
scripts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 0:59am
scripts-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 0:59am
harlan-zw commented 1 month ago

Seems reasonable, thanks :+1: We can re-export the registry from the runtime if we need runtime type augmentation