@vizejs/nuxt 0.235.0 → 0.236.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +18 -9
  2. package/package.json +7 -6
package/dist/index.mjs CHANGED
@@ -392,6 +392,23 @@ function injectNuxtI18nHelpers(code) {
392
392
  return code.slice(0, setupBodyStart) + `\nconst { ${usedSpecifiers.join(", ")} } = useI18n();\n` + code.slice(setupBodyStart);
393
393
  }
394
394
  //#endregion
395
+ //#region src/musea-components.ts
396
+ const MUSEA_ART_COMPONENT_IGNORE = "**/*.art.vue";
397
+ function appendMuseaArtComponentIgnore(dirs) {
398
+ for (const [index, dir] of dirs.entries()) {
399
+ if (typeof dir === "string") {
400
+ dirs[index] = {
401
+ path: dir,
402
+ ignore: [MUSEA_ART_COMPONENT_IGNORE]
403
+ };
404
+ continue;
405
+ }
406
+ const ignore = Array.isArray(dir.ignore) ? dir.ignore : [];
407
+ if (ignore.includes("**/*.art.vue")) continue;
408
+ dir.ignore = [...ignore, MUSEA_ART_COMPONENT_IGNORE];
409
+ }
410
+ }
411
+ //#endregion
395
412
  //#region src/utils.ts
396
413
  const NUXT_OG_IMAGE_RENDERER_SFC_EXCLUDE = /\.takumi\.vue(?:\?|$)/;
397
414
  function normalizeUrlPrefix(value) {
@@ -713,15 +730,6 @@ function appendOriginalVueSourceForUnoCss(code, normalizedId, options = {}) {
713
730
  }
714
731
  //#endregion
715
732
  //#region src/index.ts
716
- /**
717
- * @vizejs/nuxt - Nuxt module for Vize
718
- *
719
- * Provides:
720
- * - Compiler: Vue SFC compilation via Vite plugin
721
- * - Musea: Component gallery with Nuxt mock support
722
- * - Linter: `vize lint` CLI command (via `vize` bin)
723
- * - Type Checker: `vize check` CLI command (via `vize` bin)
724
- */
725
733
  const VIZE_NUXT_AUTO_IMPORT_PATCHED = "__vizeNuxtAutoImportPatched";
726
734
  const VUE_RUNTIME_DEDUPE = [
727
735
  "vue",
@@ -855,6 +863,7 @@ var src_default = defineNuxtModule({
855
863
  const devOptions = resolveNuxtDevOptions(options.dev);
856
864
  const museaOptions = resolveNuxtMuseaOptions(options.musea);
857
865
  const unocssOptions = resolveNuxtUnoCssOptions(options.unocss);
866
+ if (museaOptions !== false) nuxt.hook("components:dirs", appendMuseaArtComponentIgnore);
858
867
  const compilerOptions = resolveNuxtCompilerOptions(nuxt.options.rootDir, appBaseURL, buildAssetsDir, options.compiler, {
859
868
  supportsViteCompiler,
860
869
  vueVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/nuxt",
3
- "version": "0.235.0",
3
+ "version": "0.236.0",
4
4
  "description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
5
5
  "keywords": [
6
6
  "compiler",
@@ -32,8 +32,9 @@
32
32
  "types": "./dist/index.d.mts",
33
33
  "exports": {
34
34
  ".": {
35
+ "types": "./dist/index.d.mts",
35
36
  "import": "./dist/index.mjs",
36
- "types": "./dist/index.d.mts"
37
+ "default": "./dist/index.mjs"
37
38
  }
38
39
  },
39
40
  "publishConfig": {
@@ -41,10 +42,10 @@
41
42
  },
42
43
  "dependencies": {
43
44
  "@nuxt/kit": "4.4.8",
44
- "@vizejs/musea-nuxt": "0.235.0",
45
- "@vizejs/vite-plugin": "0.235.0",
46
- "@vizejs/vite-plugin-musea": "0.235.0",
47
- "vize": "0.235.0"
45
+ "@vizejs/musea-nuxt": "0.236.0",
46
+ "@vizejs/vite-plugin": "0.236.0",
47
+ "@vizejs/vite-plugin-musea": "0.236.0",
48
+ "vize": "0.236.0"
48
49
  },
49
50
  "devDependencies": {
50
51
  "typescript": "6.0.3",