nuxt / scripts

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

chore: add RegistryScript type #53

Closed huang-julien closed 1 month ago

huang-julien commented 1 month ago

Hey :wave:

this PR move the content of RegistryScripts to RegistryScript

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 8, 2024 11:36am
scripts-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 11:36am
harlan-zw commented 1 month ago

This looks like a sensible change. For my sake can you try to provide some more context on PRs like this though, just so I can verify if the problem is truly being solved?

Will merge for now though, thanks.

huang-julien commented 1 month ago

It's more about DX i'm currently forced to to RegistryScripts[0] if i want to type an object before pushing it into the registry