vuetify-nuxt-module 0.4.8 → 0.4.10

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.4.8"
7
+ "version": "0.4.10"
8
8
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { isAbsolute, join, relative } from 'pathe';
6
6
  import { normalizePath as normalizePath$1 } from 'vite';
7
7
  import { isPackageExists } from 'local-pkg';
8
8
 
9
- const version = "0.4.8";
9
+ const version = "0.4.10";
10
10
 
11
11
  function isSubdir(root, test) {
12
12
  const relative$1 = relative(root, test);
@@ -224,13 +224,12 @@ export function vuetifyConfiguration() {
224
224
  ${deepCopy ? `function deepCopy(src,des) {
225
225
  for (const key in src) {
226
226
  if (typeof src[key] === 'object') {
227
- if (!typeof des[key] === 'object') des[key] = {}
227
+ if (typeof des[key] !== 'object') des[key] = {}
228
228
  deepCopy(src[key], des[key])
229
229
  } else {
230
230
  des[key] = src[key]
231
231
  }
232
232
  }
233
- return des
234
233
  }
235
234
  ` : ""}
236
235
  `;
@@ -364,10 +363,7 @@ ${deepCopy ? `function deepCopy(src,des) {
364
363
  else
365
364
  componentsEntry = `options.components = {${Array.from(config.labComponents).join(",")}}`;
366
365
  }
367
- if (
368
- /*! i18n && */
369
- localeMessages
370
- ) {
366
+ if (!i18n && localeMessages) {
371
367
  const useLocales = Array.isArray(localeMessages) ? [.../* @__PURE__ */ new Set([...localeMessages])] : [localeMessages];
372
368
  config.imports.push(`import {${useLocales.join(",")}} from 'vuetify/locale'`);
373
369
  config.messages = `
@@ -376,9 +372,9 @@ ${deepCopy ? `function deepCopy(src,des) {
376
372
  ${useLocales.map((locale) => {
377
373
  return `
378
374
  if ('${locale}' in options.locale.messages)
379
- options.locale.messages['${locale}'] = deepCopy(options.locale.messages['${locale}'],${locale})
380
- else
381
- options.locale.messages['${locale}'] = ${locale}
375
+ deepCopy(options.locale.messages['${locale}'],${locale})
376
+
377
+ options.locale.messages['${locale}'] = ${locale}
382
378
  `;
383
379
  }).join("")}
384
380
  `;
@@ -873,23 +869,22 @@ const module = defineNuxtModule({
873
869
  });
874
870
  nuxt.hook("vite:extend", ({ config }) => checkVuetifyPlugins(config));
875
871
  nuxt.hook("prepare:types", ({ references }) => {
872
+ references.push({ types: "vuetify" });
876
873
  references.push({ types: "vuetify-nuxt-module/configuration" });
877
874
  });
878
875
  const {
879
- vuetifyBase,
880
876
  componentsPromise,
881
877
  labComponentsPromise
882
878
  } = resolveVuetifyComponents(resolver);
883
879
  nuxt.hook("components:extend", async (c) => {
884
880
  const components = await componentsPromise;
885
881
  Object.keys(components).forEach((component) => {
886
- const from = components[component].from;
887
882
  c.push({
888
883
  pascalName: component,
889
884
  kebabName: toKebabCase(component),
890
885
  export: component,
891
- filePath: `${resolver.resolve(vuetifyBase, `lib/${from}`)}`,
892
- shortPath: `vuetify/components/${from}`,
886
+ filePath: "vuetify/components",
887
+ shortPath: "vuetify/components",
893
888
  chunkName: toKebabCase(component),
894
889
  prefetch: false,
895
890
  preload: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.4.8",
4
+ "version": "0.4.10",
5
5
  "packageManager": "pnpm@8.6.9",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",
@@ -125,4 +125,4 @@
125
125
  "installDependencies": false,
126
126
  "startCommand": "node .stackblitz.js && pnpm install && pnpm run dev"
127
127
  }
128
- }
128
+ }