@dascompany/ui-layer-npm 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,17 +3,17 @@ import * as components from 'vuetify/components'
3
3
  import * as directives from 'vuetify/directives'
4
4
  import 'vuetify/styles'
5
5
 
6
- export default defineNuxtPlugin((nuxtApp) => {
7
- // Guard against double-registration when multiple layers include this plugin
8
- if (nuxtApp.vueApp.config.globalProperties.$vuetify) return
6
+ export default defineNuxtPlugin({
7
+ name: 'vuetify',
8
+ setup(nuxtApp) {
9
+ const vuetify = createVuetify({
10
+ components,
11
+ directives,
12
+ theme: {
13
+ defaultTheme: 'light'
14
+ }
15
+ })
9
16
 
10
- const vuetify = createVuetify({
11
- components,
12
- directives,
13
- theme: {
14
- defaultTheme: 'light'
15
- }
16
- })
17
-
18
- nuxtApp.vueApp.use(vuetify)
17
+ nuxtApp.vueApp.use(vuetify)
18
+ }
19
19
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dascompany/ui-layer-npm",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Nuxt 4 layer with Vuetify 3 — distributed via npm",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [