vuetify-nuxt-module 0.5.4 → 0.5.6

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.
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.5.4"
7
+ "version": "0.5.6"
8
8
  }
package/dist/module.mjs CHANGED
@@ -7,10 +7,11 @@ import { createConfigLoader } from 'unconfig';
7
7
  import { readFile, utimes } from 'node:fs/promises';
8
8
  import { isPackageExists } from 'local-pkg';
9
9
  import { resolveVuetifyBase, normalizePath, writeStyles, cacheDir } from '@vuetify/loader-shared';
10
+ import vuetify from 'vite-plugin-vuetify';
10
11
  import { isAbsolute, join, relative } from 'pathe';
11
12
  import { normalizePath as normalizePath$1 } from 'vite';
12
13
 
13
- const version = "0.5.4";
14
+ const version = "0.5.6";
14
15
 
15
16
  const VIRTUAL_VUETIFY_CONFIGURATION = "virtual:vuetify-configuration";
16
17
  const RESOLVED_VIRTUAL_VUETIFY_CONFIGURATION = `/@nuxt-vuetify-configuration/${VIRTUAL_VUETIFY_CONFIGURATION.slice("virtual:".length)}`;
@@ -1004,6 +1005,7 @@ function configureVite(configKey, nuxt, ctx) {
1004
1005
  ...Array.isArray(viteInlineConfig.ssr.noExternal) ? viteInlineConfig.ssr.noExternal : [],
1005
1006
  configKey
1006
1007
  ];
1008
+ viteInlineConfig.plugins.push(vuetify({ styles: true, autoImport: true }));
1007
1009
  viteInlineConfig.plugins.push(vuetifyStylesPlugin({ styles: ctx.moduleOptions.styles }, ctx.logger));
1008
1010
  viteInlineConfig.plugins.push(vuetifyConfigurationPlugin(ctx));
1009
1011
  viteInlineConfig.plugins.push(vuetifyIconsPlugin(ctx));
@@ -1041,23 +1043,6 @@ function configureNuxt(configKey, nuxt, ctx) {
1041
1043
  references.push({ types: "vuetify-nuxt-module/custom-configuration" });
1042
1044
  references.push({ types: "vuetify-nuxt-module/configuration" });
1043
1045
  });
1044
- nuxt.hook("components:extend", async (c) => {
1045
- const components = await ctx.componentsPromise;
1046
- Object.keys(components).forEach((component) => {
1047
- c.push({
1048
- pascalName: component,
1049
- kebabName: toKebabCase(component),
1050
- export: component,
1051
- filePath: "vuetify/components",
1052
- shortPath: "vuetify/components",
1053
- chunkName: toKebabCase(component),
1054
- prefetch: false,
1055
- preload: false,
1056
- global: false,
1057
- mode: "all"
1058
- });
1059
- });
1060
- });
1061
1046
  if (importComposables) {
1062
1047
  const composables = ["useLocale", "useDefaults", "useDisplay", "useLayout", "useRtl", "useTheme"];
1063
1048
  addImports(composables.map((name) => ({
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.5.4",
5
- "packageManager": "pnpm@8.6.9",
4
+ "version": "0.5.6",
5
+ "packageManager": "pnpm@8.6.10",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",
8
8
  "license": "MIT",
@@ -63,15 +63,8 @@
63
63
  "prepublishOnly": "pnpm build",
64
64
  "release": "bumpp && npm publish"
65
65
  },
66
- "peerDependencies": {
67
- "@nuxt/kit": "^3.6.2",
68
- "perfect-debounce": "^1.0.0",
69
- "unconfig": "^0.3.9",
70
- "vite-plugin-vuetify": "^1.0.2",
71
- "vuetify": "^3.3.9"
72
- },
73
66
  "dependencies": {
74
- "@nuxt/kit": "^3.6.5",
67
+ "@nuxt/kit": "^3.6.2",
75
68
  "defu": "^6.1.2",
76
69
  "perfect-debounce": "^1.0.0",
77
70
  "unconfig": "^0.3.9",