@vizejs/nuxt 0.772.0 → 0.774.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.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as setupLintInspector, m as hasNuxtViteCompilerSupport, o as setupNuxtLintConfigGeneration, p as getDetectedNuxtMajor, t as setupNuxtLintChecker } from "./setup-CS_p-8TG.mjs";
1
+ import { c as setupLintInspector, m as hasNuxtViteCompilerSupport, o as setupNuxtLintConfigGeneration, p as getDetectedNuxtMajor, t as setupNuxtLintChecker } from "./setup-CA6DHcgG.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import fs, { readFileSync, realpathSync } from "node:fs";
4
4
  import path, { dirname, join, resolve } from "node:path";
@@ -1,3 +1,3 @@
1
- import { a as ROOT_OXLINT_CONFIG_NAMES, d as VIZE_NUXT_LINT_CONFIG_ADDONS_HOOK, f as setupNuxtLintConfigAddons, i as resolveNuxtLintCheckerOptions, l as toNuxtLintProjectState, n as createNuxtLintCheckerWebpackPlugin, o as setupNuxtLintConfigGeneration, r as createNuxtLintCheckerVitePlugin, s as writeFileIfChanged, t as setupNuxtLintChecker, u as renderNuxtOxlintConfig } from "../setup-CS_p-8TG.mjs";
1
+ import { a as ROOT_OXLINT_CONFIG_NAMES, d as VIZE_NUXT_LINT_CONFIG_ADDONS_HOOK, f as setupNuxtLintConfigAddons, i as resolveNuxtLintCheckerOptions, l as toNuxtLintProjectState, n as createNuxtLintCheckerWebpackPlugin, o as setupNuxtLintConfigGeneration, r as createNuxtLintCheckerVitePlugin, s as writeFileIfChanged, t as setupNuxtLintChecker, u as renderNuxtOxlintConfig } from "../setup-CA6DHcgG.mjs";
2
2
  export * from "@vizejs/nuxt-lint-config";
3
3
  export { ROOT_OXLINT_CONFIG_NAMES, VIZE_NUXT_LINT_CONFIG_ADDONS_HOOK, createNuxtLintCheckerVitePlugin, createNuxtLintCheckerWebpackPlugin, renderNuxtOxlintConfig, resolveNuxtLintCheckerOptions, setupNuxtLintChecker, setupNuxtLintConfigAddons, setupNuxtLintConfigGeneration, toNuxtLintProjectState, writeFileIfChanged };
@@ -719,6 +719,7 @@ async function readProjectConfig(rootDir) {
719
719
  if (!loaded) return { entries: [] };
720
720
  const parsed = loaded.source;
721
721
  const rawVue = parsed.vue && typeof parsed.vue === "object" ? parsed.vue : void 0;
722
+ refusePluginEntries(rawVue);
722
723
  const rawLinter = rawVue && "linter" in rawVue ? projectLinter(rawVue.linter) : void 0;
723
724
  return {
724
725
  entries: rawVue && "entries" in rawVue ? projectEntries(rawVue.entries) : [],
@@ -727,6 +728,12 @@ async function readProjectConfig(rootDir) {
727
728
  oxlintConfigDir: loaded.configDir
728
729
  };
729
730
  }
731
+ function refusePluginEntries(vue) {
732
+ const plugins = vue && "plugins" in vue ? vue.plugins : void 0;
733
+ if (Array.isArray(plugins) && plugins.every((entry) => entry === false || entry == null)) return;
734
+ if (plugins === void 0) return;
735
+ throw new Error("[plugin/capability-unadmitted] vue.plugins: the Nuxt Oxlint integration does not run plugin lint rules yet; run `vize lint` for them");
736
+ }
730
737
  function projectLinter(value) {
731
738
  if (!value || typeof value !== "object") return void 0;
732
739
  const raw = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/nuxt",
3
- "version": "0.772.0",
3
+ "version": "0.774.0",
4
4
  "description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
5
5
  "keywords": [
6
6
  "compiler",
@@ -49,16 +49,16 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@nuxt/kit": "3.21.8",
52
- "@vizejs/native": "0.772.0",
53
- "@vizejs/nuxt-lint-config": "0.772.0",
54
- "@vizejs/vite-plugin": "0.772.0",
55
- "@vizejs/vite-plugin-musea": "0.772.0",
56
- "vize": "0.772.0"
52
+ "@vizejs/native": "0.774.0",
53
+ "@vizejs/nuxt-lint-config": "0.774.0",
54
+ "@vizejs/vite-plugin": "0.774.0",
55
+ "@vizejs/vite-plugin-musea": "0.774.0",
56
+ "vize": "0.774.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "jiti-nuxt2": "npm:jiti@1.21.7",
60
60
  "oxlint": "1.78.0",
61
- "oxlint-plugin-vize": "0.772.0",
61
+ "oxlint-plugin-vize": "0.774.0",
62
62
  "typescript": "6.0.3",
63
63
  "vite": "npm:@voidzero-dev/vite-plus-core@1.5.0",
64
64
  "vite-plus": "1.5.0",