nuxtlabs / nuxt-component-meta

Gather Nuxt components metadata on build time and make them available on production.
69 stars 6 forks source link

fix: don't rely on presence of `@nuxt/ui-templates` #66

Closed danielroe closed 2 months ago

danielroe commented 2 months ago

Several fixes in this PR:

  1. Don't rely on @nuxt/ui-templates being present in the repo. We've recently removed it and this is breaking projects using nuxt-component-meta: see https://github.com/nuxt/ecosystem-ci/actions/runs/8934318864
  2. We don't need to resolve nuxt/app as it is already set in nuxt.options.appDir
  3. We can resolve both paths up-front and improve performance as it no longer has to run each time that components:dirs is called.