@vizejs/nuxt 0.609.0 → 0.611.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-
|
|
1
|
+
import { c as setupLintInspector, m as hasNuxtViteCompilerSupport, o as setupNuxtLintConfigGeneration, p as getDetectedNuxtMajor, t as setupNuxtLintChecker } from "./setup-tlQSod9o.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";
|
package/dist/lint/index.mjs
CHANGED
|
@@ -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-
|
|
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-tlQSod9o.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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as nodeModule from "node:module";
|
|
2
2
|
import { createRequire, globalPaths } from "node:module";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
|
-
import { existsSync, lstatSync, realpathSync } from "node:fs";
|
|
4
|
+
import { existsSync, lstatSync, readFileSync, realpathSync } from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import path, { dirname, extname, isAbsolute, join, relative, sep } from "node:path";
|
|
7
7
|
import { glob, lstat, mkdir, mkdtemp, open, readFile, realpath, rename, rm, unlink, writeFile } from "node:fs/promises";
|
|
@@ -260,6 +260,29 @@ function toNuxtLintProjectState(options, overrides = {}) {
|
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region ../../../crates/vize_carton/src/config/loader/module-runtime.mjs
|
|
263
|
+
async function isTypesOnlyEngine(directory, engineName, beforeRead, watchInputs) {
|
|
264
|
+
let manifest;
|
|
265
|
+
try {
|
|
266
|
+
manifest = JSON.parse(readFileSync(join(directory, "package.json"), "utf8"));
|
|
267
|
+
} catch {
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
if (manifest?.name !== engineName || typeof (manifest.types ?? manifest.typings) !== "string" || (manifest.types ?? manifest.typings).length === 0 || [
|
|
271
|
+
"main",
|
|
272
|
+
"exports",
|
|
273
|
+
"module",
|
|
274
|
+
"browser",
|
|
275
|
+
"bin"
|
|
276
|
+
].some((key) => Object.hasOwn(manifest, key))) return false;
|
|
277
|
+
const defaults = [
|
|
278
|
+
"index.js",
|
|
279
|
+
"index.json",
|
|
280
|
+
"index.node"
|
|
281
|
+
].map((name) => join(directory, name));
|
|
282
|
+
for (const path of defaults) watchInputs.add(path);
|
|
283
|
+
await beforeRead?.(defaults);
|
|
284
|
+
return defaults.every((path) => lstatSync(path, { throwIfNoEntry: false }) === void 0);
|
|
285
|
+
}
|
|
263
286
|
const configFailureArtifacts = /* @__PURE__ */ new WeakMap();
|
|
264
287
|
const configEvaluationTimings = /* @__PURE__ */ new WeakMap();
|
|
265
288
|
function beginConfigTiming(rows, phase, boundary) {
|
|
@@ -478,11 +501,16 @@ async function importConfigModuleWithDependencies(configPath, registerModuleHook
|
|
|
478
501
|
watchInputs.add(requested);
|
|
479
502
|
await beforeRead?.([requested]);
|
|
480
503
|
if (lstatSync(requested, { throwIfNoEntry: false }) !== void 0) {
|
|
504
|
+
const engineDirectory = realpathSync(requested);
|
|
505
|
+
const manifests = [requested, engineDirectory].map((path) => join(path, "package.json"));
|
|
506
|
+
for (const path of manifests) watchInputs.add(path);
|
|
507
|
+
await beforeRead?.(manifests);
|
|
508
|
+
if (await isTypesOnlyEngine(engineDirectory, engineName, beforeRead, watchInputs)) continue;
|
|
481
509
|
candidate = {
|
|
482
510
|
engineName,
|
|
483
|
-
directory: requested
|
|
511
|
+
directory: requested,
|
|
512
|
+
engineDirectory
|
|
484
513
|
};
|
|
485
|
-
watchInputs.add(join(candidate.directory, "package.json"));
|
|
486
514
|
break;
|
|
487
515
|
}
|
|
488
516
|
}
|
|
@@ -499,9 +527,7 @@ async function importConfigModuleWithDependencies(configPath, registerModuleHook
|
|
|
499
527
|
result = await captureConfigEvaluation(async () => ({ namespace: await (withoutVite ? withoutVite(configURL) : import(configURL.href)) }), configPath, registerModuleHooks, evaluate, void 0, observe, void 0, timings);
|
|
500
528
|
return result;
|
|
501
529
|
}
|
|
502
|
-
const engineDirectory =
|
|
503
|
-
watchInputs.add(join(engineDirectory, "package.json"));
|
|
504
|
-
await beforeRead?.([join(candidate.directory, "package.json"), join(engineDirectory, "package.json")]);
|
|
530
|
+
const { engineDirectory } = candidate;
|
|
505
531
|
const resolvedEntry = require.resolve(candidate.engineName);
|
|
506
532
|
watchInputs.add(resolvedEntry);
|
|
507
533
|
const engineEntry = realpathSync(resolvedEntry);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.611.0",
|
|
4
4
|
"description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@nuxt/kit": "3.21.8",
|
|
52
|
-
"@vizejs/native": "0.
|
|
53
|
-
"@vizejs/nuxt-lint-config": "0.
|
|
54
|
-
"@vizejs/vite-plugin": "0.
|
|
55
|
-
"@vizejs/vite-plugin-musea": "0.
|
|
56
|
-
"vize": "0.
|
|
52
|
+
"@vizejs/native": "0.611.0",
|
|
53
|
+
"@vizejs/nuxt-lint-config": "0.611.0",
|
|
54
|
+
"@vizejs/vite-plugin": "0.611.0",
|
|
55
|
+
"@vizejs/vite-plugin-musea": "0.611.0",
|
|
56
|
+
"vize": "0.611.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"jiti-nuxt2": "npm:jiti@1.21.7",
|
|
60
|
-
"oxlint-plugin-vize": "0.
|
|
60
|
+
"oxlint-plugin-vize": "0.611.0",
|
|
61
61
|
"typescript": "6.0.3",
|
|
62
62
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
|
|
63
63
|
"vite-plus": "1.3.0",
|