How to view package version in nuxt

  // nuxt.config.ts
  runtimeConfig: {
    public: {
      clientVersion: pkg.version,
    },
  },
// component
<p>Version: {{ $config.public.clientVersion }}</p>