nuxt-component-meta icon indicating copy to clipboard operation
nuxt-component-meta copied to clipboard

Enable Module Support in nuxt-component-meta CLI

Open romhml opened this issue 1 year ago • 1 comments

Currently, the nuxt-component-meta CLI does not resolve components correctly for modules.

Here's a reproduction: https://stackblitz.com/edit/stackblitz-starters-kjvwap

Running pnpm nuxt-component-meta . does not find any components in the module. Although pnpm nuxt-component-meta src/runtime will find components, it will not resolve any types from #build since the build directory will not be resolved correctly.

The expected behaviour would be to generate component meta for a Nuxt Module when running pnpm nuxt-component-meta ..

romhml avatar Oct 13 '24 07:10 romhml

I found a workaround by running this command on the playground app: pnpm nuxt-component-meta playground --outputDir ../.component-meta/

romhml avatar Oct 13 '24 08:10 romhml