vite-doctor 0.0.4 → 0.0.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/cli.mjs +4 -4
- package/dist/{config-BmPOr4h2.d.mts → config-BUjI8Z-S.d.mts} +1 -2
- package/dist/{config-Dnzvhp-h.mjs → config-cx1PzoSm.mjs} +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{core-xDy0T1J2.mjs → core-BFSgtrql.mjs} +31 -19
- package/dist/{doctor-Bg0UJqwf.mjs → doctor-6AYPdd9f.mjs} +7 -7
- package/dist/index-BhX8IsSY.d.mts +3 -0
- package/dist/{index-Cej8hbDn.d.mts → index-CuZnkOun.d.mts} +1 -2
- package/dist/index-D9d8HxE4.d.mts +1 -0
- package/dist/{index-DELTN2OW.d.mts → index-Dt29Fkqo.d.mts} +1 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{module-Bhfqw7wj.mjs → module--Dgf9XPW.mjs} +31 -5
- package/dist/{module-DpsQYVY7.d.mts → module-uWErbEZU.d.mts} +13 -7
- package/dist/nitro-BVeI5VWP.mjs +2 -0
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +1 -1
- package/dist/{plugin-BMTLuRfv.d.mts → plugin-Cbc4OqZF.d.mts} +3 -3
- package/dist/{plugin-B-mvNSii.mjs → plugin-DF-TEW82.mjs} +2 -2
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/{primitives-UOE4-YE8.d.mts → primitives-BKt7lsYN.d.mts} +24 -1
- package/dist/rule-packs/nitro/index.d.mts +2 -1
- package/dist/rule-packs/nitro/index.mjs +2 -2
- package/dist/rule-packs/nitro/rules.d.mts +1 -1
- package/dist/rule-packs/nitro/rules.mjs +1 -1
- package/dist/rule-packs/nuxt/index.d.mts +2 -2
- package/dist/rule-packs/nuxt/index.mjs +1 -1
- package/dist/rule-packs/nuxt/module.d.mts +2 -2
- package/dist/rule-packs/nuxt/module.mjs +1 -1
- package/dist/rule-packs/nuxt/rules/index.d.mts +4 -2
- package/dist/rule-packs/nuxt/rules/index.mjs +2 -2
- package/dist/rule-packs/vite/index.d.mts +1 -1
- package/dist/rule-packs/vite/index.mjs +1 -1
- package/dist/rule-packs/vite/rules/index.d.mts +1 -1
- package/dist/rule-packs/vite/rules/index.mjs +1 -1
- package/dist/rule-packs/vue/index.d.mts +1 -1
- package/dist/rule-packs/vue/index.mjs +1 -1
- package/dist/rule-packs/vue/rules.d.mts +1 -1
- package/dist/rule-packs/vue/rules.mjs +1 -1
- package/dist/{rules-BY3D2U9g.mjs → rules-BFAxpIuo.mjs} +19 -18
- package/dist/{rules-drBDqot9.mjs → rules-BTFofRie.mjs} +73 -29
- package/dist/rules-CHyYwZV9.mjs +2 -0
- package/dist/{rules-D_ZBKNuF.d.mts → rules-CKaNAD2c.d.mts} +1 -2
- package/dist/{rules-D233rRrp.mjs → rules-DYysUGLM.mjs} +4 -4
- package/dist/{rules-pUteKop1.mjs → rules-Dfp82SAy.mjs} +15 -14
- package/dist/rules.d.mts +1 -1
- package/dist/rules.mjs +2 -2
- package/package.json +29 -30
- package/dist/index-BKZ67WMa.d.mts +0 -1
- package/dist/index-BVVgDSdq.d.mts +0 -1
- package/dist/nitro-DP7qe6zn.mjs +0 -2
- package/dist/rules-DdChlCWs.mjs +0 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as cleanCache, i as explainRule, l as evaluateRuleApplicability, n as createReport, r as createRulesReport, u as detectProject } from "./core-
|
|
3
|
-
import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-
|
|
2
|
+
import { c as cleanCache, i as explainRule, l as evaluateRuleApplicability, n as createReport, r as createRulesReport, u as detectProject } from "./core-BFSgtrql.mjs";
|
|
3
|
+
import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-6AYPdd9f.mjs";
|
|
4
4
|
import { relative, resolve } from "pathe";
|
|
5
5
|
import { realpathSync, statSync } from "node:fs";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -278,7 +278,7 @@ function major(version) {
|
|
|
278
278
|
}
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region src/cli-main.ts
|
|
281
|
-
const commands = new Set([
|
|
281
|
+
const commands = /* @__PURE__ */ new Set([
|
|
282
282
|
"scan",
|
|
283
283
|
"check",
|
|
284
284
|
"migrate",
|
|
@@ -286,7 +286,7 @@ const commands = new Set([
|
|
|
286
286
|
"explain",
|
|
287
287
|
"cache"
|
|
288
288
|
]);
|
|
289
|
-
const removedCommands = new Set(["run", "ci"]);
|
|
289
|
+
const removedCommands = /* @__PURE__ */ new Set(["run", "ci"]);
|
|
290
290
|
async function main(args = process.argv.slice(2), cwd = process.cwd()) {
|
|
291
291
|
if (args.includes("--version") || args.includes("-v")) {
|
|
292
292
|
process.stdout.write(`${viteDoctorVersion}\n`);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-BKt7lsYN.mjs";
|
|
3
2
|
//#region src/core/config.d.ts
|
|
4
3
|
interface DoctorConfig extends DoctorSerializableConfig {
|
|
5
4
|
extensions?: DoctorExtension[];
|
|
@@ -5,13 +5,14 @@ function defineDoctorConfig(config) {
|
|
|
5
5
|
return config;
|
|
6
6
|
}
|
|
7
7
|
async function loadDoctorConfig(options) {
|
|
8
|
-
|
|
8
|
+
const result = await loadConfig({
|
|
9
9
|
configFile: "doctor.config",
|
|
10
10
|
cwd: options.cwd,
|
|
11
11
|
dotenv: false,
|
|
12
12
|
globalRc: false,
|
|
13
13
|
name: "doctor"
|
|
14
|
-
})
|
|
14
|
+
});
|
|
15
|
+
return defu(result.config ?? {}, options.defaults ?? {});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
export { loadDoctorConfig as n, defineDoctorConfig as t };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-
|
|
1
|
+
import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-BUjI8Z-S.mjs";
|
|
2
2
|
export { type DoctorConfig, type DoctorRunOptions, type LoadDoctorConfigOptions, defineDoctorConfig, loadDoctorConfig };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as loadDoctorConfig, t as defineDoctorConfig } from "./config-
|
|
1
|
+
import { n as loadDoctorConfig, t as defineDoctorConfig } from "./config-cx1PzoSm.mjs";
|
|
2
2
|
export { defineDoctorConfig, loadDoctorConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-cx1PzoSm.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, join, relative, resolve } from "pathe";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -194,6 +194,7 @@ function createNuxtProjectInventory(root, manifest, manifestPath, fallbackImport
|
|
|
194
194
|
pluginFiles: (manifest?.pluginFiles ?? []).map((file) => resolve(root, file)),
|
|
195
195
|
keyedComposables: (manifest?.keyedComposables ?? []).map(String),
|
|
196
196
|
aliases: manifest?.aliases ?? {},
|
|
197
|
+
autoImportTransform: manifest?.autoImportTransform,
|
|
197
198
|
appScanRoots: (manifest?.appScanRoots ?? [manifest?.appDir ?? "app"]).map((dir) => resolve(root, dir)),
|
|
198
199
|
sharedScanRoots: (manifest?.sharedScanRoots ?? ["shared/utils", "shared/types"]).map((dir) => resolve(root, dir)),
|
|
199
200
|
hasManifest: Boolean(manifestPath),
|
|
@@ -226,14 +227,14 @@ const packageCandidates = {
|
|
|
226
227
|
vue: ["vue"]
|
|
227
228
|
};
|
|
228
229
|
const acceptedIdentities = {
|
|
229
|
-
nuxt: new Set(["nuxt", "nuxt-nightly"]),
|
|
230
|
-
nitro: new Set([
|
|
230
|
+
nuxt: /* @__PURE__ */ new Set(["nuxt", "nuxt-nightly"]),
|
|
231
|
+
nitro: /* @__PURE__ */ new Set([
|
|
231
232
|
"nitro",
|
|
232
233
|
"nitropack",
|
|
233
234
|
"nitro-nightly"
|
|
234
235
|
]),
|
|
235
|
-
h3: new Set(["h3", "h3-nightly"]),
|
|
236
|
-
vue: new Set(["vue"])
|
|
236
|
+
h3: /* @__PURE__ */ new Set(["h3", "h3-nightly"]),
|
|
237
|
+
vue: /* @__PURE__ */ new Set(["vue"])
|
|
237
238
|
};
|
|
238
239
|
function resolveRuntimeGraph(root, framework) {
|
|
239
240
|
const rootManifest = join(root, "package.json");
|
|
@@ -266,9 +267,7 @@ function resolveNuxtCompatibility(root, graph, manifest) {
|
|
|
266
267
|
if (!graph.packages.nuxt) return void 0;
|
|
267
268
|
const config = readNuxtConfig(root);
|
|
268
269
|
const manifestGeneratedAt = manifest?.generatedAt ? Date.parse(manifest.generatedAt) : NaN;
|
|
269
|
-
|
|
270
|
-
const manifestMatchesConfig = configModifiedAt === void 0 || (Number.isFinite(manifest?.nuxtConfigMtimeMs) ? manifest?.nuxtConfigMtimeMs === configModifiedAt : manifestGeneratedAt >= configModifiedAt);
|
|
271
|
-
if (Number.isFinite(manifestGeneratedAt) && isSupportedNuxtCompatibility(manifest?.compatibilityVersion) && manifestMatchesConfig) return {
|
|
270
|
+
if (Number.isFinite(manifestGeneratedAt) && isSupportedNuxtCompatibility(manifest?.compatibilityVersion) && isNuxtManifestCurrent(root, manifest)) return {
|
|
272
271
|
state: "resolved",
|
|
273
272
|
version: manifest.compatibilityVersion,
|
|
274
273
|
provenance: "manifest"
|
|
@@ -300,6 +299,13 @@ function resolveNuxtCompatibility(root, graph, manifest) {
|
|
|
300
299
|
provenance: "default"
|
|
301
300
|
};
|
|
302
301
|
}
|
|
302
|
+
function isNuxtManifestCurrent(root, manifest) {
|
|
303
|
+
if (!manifest?.generatedAt || !Number.isFinite(Date.parse(manifest.generatedAt))) return false;
|
|
304
|
+
const config = readNuxtConfig(root);
|
|
305
|
+
const configModifiedAt = config ? configModifiedTime(config.file) : void 0;
|
|
306
|
+
if (configModifiedAt === void 0) return true;
|
|
307
|
+
return Number.isFinite(manifest.nuxtConfigMtimeMs) ? manifest.nuxtConfigMtimeMs === configModifiedAt : Date.parse(manifest.generatedAt) >= configModifiedAt;
|
|
308
|
+
}
|
|
303
309
|
function isSupportedNuxtCompatibility(value) {
|
|
304
310
|
return value === 4 || value === 5;
|
|
305
311
|
}
|
|
@@ -605,6 +611,8 @@ async function normalizeNuxtProject(root, version, deps, manifest, manifestPath)
|
|
|
605
611
|
version: cleanVersion(manifest?.nuxtVersion ?? version),
|
|
606
612
|
appDir: resolve(root, manifest?.appDir ?? (existsSync(join(root, "app")) ? "app" : ".")),
|
|
607
613
|
appRoots: manifest?.layers?.length ? manifest.layers.map((layer) => resolve(root, layer.root)).sort() : await detectNuxtAppRoots(root),
|
|
614
|
+
autoImportEnabled: manifest ? manifest.autoImportEnabled === true : true,
|
|
615
|
+
autoImportsAuthoritative: manifest?.autoImportEnabled !== void 0 && isNuxtManifestCurrent(root, manifest),
|
|
608
616
|
autoImports: new Map((manifest?.autoImports ?? coreAutoImports()).map((entry) => [entry.as ?? entry.name, entry])),
|
|
609
617
|
components: new Map((manifest?.components ?? []).map((component) => [component.name, component])),
|
|
610
618
|
layers: manifest?.layers ?? [{
|
|
@@ -816,7 +824,7 @@ function execFileText(command, args, cwd) {
|
|
|
816
824
|
//#endregion
|
|
817
825
|
//#region src/core/internal/visitor-keys.ts
|
|
818
826
|
const parserVisitorKeys = isVisitorKeyMap(oxcParser.visitorKeys) ? oxcParser.visitorKeys : {};
|
|
819
|
-
const ignoredFallbackKeys = new Set([
|
|
827
|
+
const ignoredFallbackKeys = /* @__PURE__ */ new Set([
|
|
820
828
|
"__doctorParent",
|
|
821
829
|
"comments",
|
|
822
830
|
"end",
|
|
@@ -923,7 +931,7 @@ function createHelpers() {
|
|
|
923
931
|
}
|
|
924
932
|
};
|
|
925
933
|
}
|
|
926
|
-
const CLIENT_LIFECYCLE_CALLEES = new Set([
|
|
934
|
+
const CLIENT_LIFECYCLE_CALLEES = /* @__PURE__ */ new Set([
|
|
927
935
|
"onMounted",
|
|
928
936
|
"onBeforeMount",
|
|
929
937
|
"onUnmounted",
|
|
@@ -931,7 +939,7 @@ const CLIENT_LIFECYCLE_CALLEES = new Set([
|
|
|
931
939
|
"onNuxtReady",
|
|
932
940
|
"onPrehydrate"
|
|
933
941
|
]);
|
|
934
|
-
const CLIENT_EVENT_CALLEES = new Set([
|
|
942
|
+
const CLIENT_EVENT_CALLEES = /* @__PURE__ */ new Set([
|
|
935
943
|
"addEventListener",
|
|
936
944
|
"window.addEventListener",
|
|
937
945
|
"document.addEventListener",
|
|
@@ -946,8 +954,8 @@ const CLIENT_EVENT_CALLEES = new Set([
|
|
|
946
954
|
"useIntersectionObserver",
|
|
947
955
|
"useResizeObserver"
|
|
948
956
|
]);
|
|
949
|
-
const DEFERRED_CALLBACK_CALLEES = new Set(["watch", "watchPostEffect"]);
|
|
950
|
-
const TIMER_CALLBACK_CALLEES = new Set([
|
|
957
|
+
const DEFERRED_CALLBACK_CALLEES = /* @__PURE__ */ new Set(["watch", "watchPostEffect"]);
|
|
958
|
+
const TIMER_CALLBACK_CALLEES = /* @__PURE__ */ new Set([
|
|
951
959
|
"setTimeout",
|
|
952
960
|
"setInterval",
|
|
953
961
|
"requestAnimationFrame",
|
|
@@ -1271,7 +1279,8 @@ function evaluateNuxtCompatibility(project, range) {
|
|
|
1271
1279
|
if (!validRange(range)) return unknown(`Invalid Nuxt compatibility range ${range}.`);
|
|
1272
1280
|
const compatibility = project.nuxtCompatibility;
|
|
1273
1281
|
if (compatibility?.state !== "resolved" || compatibility.version === void 0) return unknown(compatibility?.reason ?? "Nuxt compatibility behavior is unresolved.");
|
|
1274
|
-
|
|
1282
|
+
const version = `${compatibility.version}.0.0`;
|
|
1283
|
+
return satisfies(version, range) ? active() : inactive(`Nuxt compatibility ${compatibility.version} does not satisfy ${range}.`);
|
|
1275
1284
|
}
|
|
1276
1285
|
function combineApplicability(results) {
|
|
1277
1286
|
if (!results.length) return active();
|
|
@@ -2685,7 +2694,8 @@ function applyFixes(diagnostics, options = {}) {
|
|
|
2685
2694
|
byFile.set(diagnostic.file, list);
|
|
2686
2695
|
}
|
|
2687
2696
|
for (const [file, items] of byFile) {
|
|
2688
|
-
const
|
|
2697
|
+
const text = readFileSync(file, "utf8");
|
|
2698
|
+
const ms = new MagicString(text);
|
|
2689
2699
|
const edits = planNonOverlappingFixes(items).sort((a, b) => b.range.start - a.range.start);
|
|
2690
2700
|
for (const edit of edits) ms.overwrite(edit.range.start, edit.range.end, edit.text);
|
|
2691
2701
|
mkdirSync(dirname(file), { recursive: true });
|
|
@@ -2983,7 +2993,7 @@ function resolveImportTarget(session, from, specifier, byRelativePath) {
|
|
|
2983
2993
|
}
|
|
2984
2994
|
}
|
|
2985
2995
|
function aliasImportBases(session, base) {
|
|
2986
|
-
const roots = new Set([
|
|
2996
|
+
const roots = /* @__PURE__ */ new Set([
|
|
2987
2997
|
"",
|
|
2988
2998
|
"app",
|
|
2989
2999
|
"shared"
|
|
@@ -3000,7 +3010,7 @@ function aliasImportBases(session, base) {
|
|
|
3000
3010
|
return [...roots].flatMap((root) => root ? [`${root}/${base}`] : [base]);
|
|
3001
3011
|
}
|
|
3002
3012
|
function rootAliasImportBases(session, base) {
|
|
3003
|
-
const roots = new Set(["", ...workspacePackageRoots(session)]);
|
|
3013
|
+
const roots = /* @__PURE__ */ new Set(["", ...workspacePackageRoots(session)]);
|
|
3004
3014
|
const bases = [];
|
|
3005
3015
|
for (const root of roots) {
|
|
3006
3016
|
bases.push(root ? `${root}/${base}` : base);
|
|
@@ -3328,7 +3338,7 @@ function readPackageDeps(root) {
|
|
|
3328
3338
|
}
|
|
3329
3339
|
function findPackageJsonFiles(root) {
|
|
3330
3340
|
const files = [];
|
|
3331
|
-
const ignored = new Set([
|
|
3341
|
+
const ignored = /* @__PURE__ */ new Set([
|
|
3332
3342
|
"node_modules",
|
|
3333
3343
|
".git",
|
|
3334
3344
|
".nuxt",
|
|
@@ -3411,7 +3421,9 @@ function collectPackageExportEntries(packageRoot, value, candidates) {
|
|
|
3411
3421
|
function sourceCandidatesForPackageEntry(packageRoot, entry) {
|
|
3412
3422
|
if (!entry || entry.startsWith("#")) return [];
|
|
3413
3423
|
const clean = entry.replace(/^\.\//, "");
|
|
3414
|
-
|
|
3424
|
+
const direct = resolve(packageRoot, clean);
|
|
3425
|
+
const src = clean.replace(/^dist\//, "src/").replace(/\.d\.[cm]?ts$/, ".ts").replace(/\.[cm]?js$/, ".ts").replace(/\.mjs$/, ".ts").replace(/\.cjs$/, ".ts");
|
|
3426
|
+
return [direct, resolve(packageRoot, src)].flatMap((file) => importCandidates(relative(packageRoot, file)).map((item) => resolve(packageRoot, item))).filter((file) => existsSync(file));
|
|
3415
3427
|
}
|
|
3416
3428
|
function isLikelyForeignFrameworkFile(session, relativePath, deps) {
|
|
3417
3429
|
for (const root of deps.foreignRoots) if (root && (relativePath === root || relativePath.startsWith(`${root}/`))) return true;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as defineDoctorExtension, t as runDoctor } from "./core-
|
|
2
|
-
import { t as nitroRulePack } from "./rules-
|
|
3
|
-
import "./nitro-
|
|
4
|
-
import { t as vueRulePack } from "./rules-
|
|
5
|
-
import { n as nuxtRulePacks, t as nuxtDoctorExtensions } from "./rules-
|
|
6
|
-
import { t as viteRulePack } from "./rules-
|
|
7
|
-
import "./rules-
|
|
1
|
+
import { f as defineDoctorExtension, t as runDoctor } from "./core-BFSgtrql.mjs";
|
|
2
|
+
import { t as nitroRulePack } from "./rules-DYysUGLM.mjs";
|
|
3
|
+
import "./nitro-BVeI5VWP.mjs";
|
|
4
|
+
import { t as vueRulePack } from "./rules-Dfp82SAy.mjs";
|
|
5
|
+
import { n as nuxtRulePacks, t as nuxtDoctorExtensions } from "./rules-BTFofRie.mjs";
|
|
6
|
+
import { t as viteRulePack } from "./rules-BFAxpIuo.mjs";
|
|
7
|
+
import "./rules-CHyYwZV9.mjs";
|
|
8
8
|
import { join } from "pathe";
|
|
9
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
10
|
//#region src/version.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { o as RulePack, r as DoctorRule } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { o as RulePack, r as DoctorRule } from "./primitives-BKt7lsYN.mjs";
|
|
3
2
|
//#region src/rule-packs/vite/rules/define.d.ts
|
|
4
3
|
declare const noUnusedDefine: DoctorRule;
|
|
5
4
|
declare const noUntypedDefine: DoctorRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-Dt29Fkqo.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { o as RulePack, r as DoctorRule } from "./primitives-
|
|
2
|
-
|
|
1
|
+
import { o as RulePack, r as DoctorRule } from "./primitives-BKt7lsYN.mjs";
|
|
3
2
|
//#region src/rule-packs/nitro/rules/no-use-nuxt-app-in-nitro.d.ts
|
|
4
3
|
declare const noUseNuxtAppInNitro: DoctorRule;
|
|
5
4
|
//#endregion
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-
|
|
2
|
-
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-
|
|
1
|
+
import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-BUjI8Z-S.mjs";
|
|
2
|
+
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-Cbc4OqZF.mjs";
|
|
3
3
|
export { type DoctorConfig, type DoctorRunOptions, type ViteDoctorSurfaceOptions, defineDoctorConfig, doctor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as defineDoctorConfig } from "./config-
|
|
2
|
-
import { t as doctor } from "./plugin-
|
|
1
|
+
import { t as defineDoctorConfig } from "./config-cx1PzoSm.mjs";
|
|
2
|
+
import { t as doctor } from "./plugin-DF-TEW82.mjs";
|
|
3
3
|
export { defineDoctorConfig, doctor };
|
|
@@ -12,8 +12,12 @@ async function nuxtDoctorModule(options = {}, nuxt) {
|
|
|
12
12
|
prerenderRoutes: /* @__PURE__ */ new Set(),
|
|
13
13
|
buildManifest: void 0,
|
|
14
14
|
componentDirs: [],
|
|
15
|
-
importDirs: []
|
|
15
|
+
importDirs: [],
|
|
16
|
+
autoImportContext: void 0
|
|
16
17
|
};
|
|
18
|
+
nuxt.hook?.("imports:context", (context) => {
|
|
19
|
+
evidence.autoImportContext = context;
|
|
20
|
+
});
|
|
17
21
|
nuxt.hook?.("pages:resolved", (pages) => {
|
|
18
22
|
evidence.pages = flattenPages(pages).map((page) => ({
|
|
19
23
|
path: page.path,
|
|
@@ -64,7 +68,8 @@ async function collectNuxtDoctorExtensions(nuxt) {
|
|
|
64
68
|
async function writeManifest(nuxt, evidence) {
|
|
65
69
|
const rootDir = resolve(nuxt.options.rootDir ?? process.cwd());
|
|
66
70
|
const buildDir = resolve(rootDir, nuxt.options.buildDir ?? ".nuxt");
|
|
67
|
-
const
|
|
71
|
+
const srcDir = resolve(rootDir, nuxt.options.srcDir ?? ".");
|
|
72
|
+
const appDir = srcDir;
|
|
68
73
|
const moduleSources = [];
|
|
69
74
|
await nuxt.callHook?.("doctor:extendSources", moduleSources);
|
|
70
75
|
const modules = toArray(nuxt.options.modules).map((entry) => ({
|
|
@@ -72,16 +77,19 @@ async function writeManifest(nuxt, evidence) {
|
|
|
72
77
|
version: entry?.meta?.version,
|
|
73
78
|
doctorPlugin: entry?.doctor?.plugin
|
|
74
79
|
}));
|
|
80
|
+
const resolvedAutoImports = evidence?.autoImportContext?.getImports ? await evidence.autoImportContext.getImports() : toArray(nuxt.options.imports?.imports);
|
|
75
81
|
const manifest = {
|
|
76
82
|
nuxtConfigMtimeMs: nuxtConfigModifiedAt(rootDir),
|
|
77
83
|
nuxtVersion: nuxt._version ?? nuxt.version ?? "4",
|
|
78
84
|
vueVersion: nuxt.options.vue?.version ?? "3.5",
|
|
79
85
|
compatibilityVersion: nuxt.options.future?.compatibilityVersion,
|
|
80
86
|
rootDir,
|
|
81
|
-
srcDir
|
|
87
|
+
srcDir,
|
|
82
88
|
appDir,
|
|
83
89
|
buildDir,
|
|
84
|
-
|
|
90
|
+
autoImportEnabled: nuxt.options.imports?.autoImport !== false,
|
|
91
|
+
autoImportTransform: serializeImportTransform(nuxt.options.imports?.transform),
|
|
92
|
+
autoImports: normalizeAutoImports(resolvedAutoImports),
|
|
85
93
|
components: toArray(nuxt.options.components ?? nuxt._components),
|
|
86
94
|
layers: toArray(nuxt.options._layers ?? [{ cwd: rootDir }]).map((layer, index) => ({
|
|
87
95
|
root: resolve(layer.cwd ?? layer.config?.rootDir ?? rootDir),
|
|
@@ -97,7 +105,7 @@ async function writeManifest(nuxt, evidence) {
|
|
|
97
105
|
middleware: handler.middleware
|
|
98
106
|
})),
|
|
99
107
|
pages: evidence?.pages ?? [],
|
|
100
|
-
prerenderRoutes: [
|
|
108
|
+
prerenderRoutes: [.../* @__PURE__ */ new Set([...toArray(nuxt.options.nitro?.prerender?.routes).map(String), ...[...evidence?.prerenderRoutes ?? []].map(String)])].sort(),
|
|
101
109
|
buildManifest: evidence?.buildManifest ?? {
|
|
102
110
|
hasBuildManifest: false,
|
|
103
111
|
chunks: []
|
|
@@ -157,6 +165,24 @@ function toArray(value) {
|
|
|
157
165
|
function normalizeDirs(rootDir, dirs) {
|
|
158
166
|
return dirs.map((dir) => typeof dir === "string" ? dir : dir?.path).filter(Boolean).map((dir) => resolve(rootDir, dir));
|
|
159
167
|
}
|
|
168
|
+
function normalizeAutoImports(imports) {
|
|
169
|
+
return imports.map((entry) => ({
|
|
170
|
+
name: entry?.name,
|
|
171
|
+
as: entry?.as,
|
|
172
|
+
from: entry?.from,
|
|
173
|
+
type: entry?.type === true || void 0
|
|
174
|
+
})).filter((entry) => entry.name && entry.from);
|
|
175
|
+
}
|
|
176
|
+
function serializeImportTransform(transform) {
|
|
177
|
+
const serialize = (patterns) => patterns.filter((pattern) => pattern instanceof RegExp).map(({ source, flags }) => ({
|
|
178
|
+
source,
|
|
179
|
+
flags
|
|
180
|
+
}));
|
|
181
|
+
return {
|
|
182
|
+
include: serialize(toArray(transform?.include)),
|
|
183
|
+
exclude: serialize(toArray(transform?.exclude))
|
|
184
|
+
};
|
|
185
|
+
}
|
|
160
186
|
function normalizePluginFiles(rootDir, plugins) {
|
|
161
187
|
return plugins.map((plugin) => typeof plugin === "string" ? plugin : plugin?.src ?? plugin?.file).filter(Boolean).map((file) => resolve(rootDir, file));
|
|
162
188
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest, o as RulePack, t as DoctorExtension } from "./primitives-
|
|
2
|
-
import { t as DoctorConfig } from "./config-
|
|
1
|
+
import { a as NuxtDoctorManifest, o as RulePack, t as DoctorExtension } from "./primitives-BKt7lsYN.mjs";
|
|
2
|
+
import { t as DoctorConfig } from "./config-BUjI8Z-S.mjs";
|
|
3
|
+
import "./index-BhX8IsSY.mjs";
|
|
3
4
|
//#region src/rule-packs/nuxt/module.d.ts
|
|
4
5
|
interface NuxtDoctorModuleOptions {
|
|
5
6
|
config?: DoctorConfig;
|
|
@@ -15,10 +16,10 @@ type EvidenceBuildManifest = {
|
|
|
15
16
|
isDynamicEntry?: boolean;
|
|
16
17
|
}>;
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
type NuxtAutoImportContext = {
|
|
20
|
+
getImports?: () => Promise<unknown[]> | unknown[];
|
|
21
|
+
};
|
|
22
|
+
type NuxtDoctorEvidence = {
|
|
22
23
|
pages?: Array<{
|
|
23
24
|
path?: string;
|
|
24
25
|
file?: string;
|
|
@@ -28,6 +29,11 @@ declare function writeManifest(nuxt: any, evidence?: {
|
|
|
28
29
|
buildManifest?: EvidenceBuildManifest;
|
|
29
30
|
componentDirs?: unknown[];
|
|
30
31
|
importDirs?: unknown[];
|
|
31
|
-
|
|
32
|
+
autoImportContext?: NuxtAutoImportContext;
|
|
33
|
+
};
|
|
34
|
+
declare function nuxtDoctorModule(options: NuxtDoctorModuleOptions | undefined, nuxt: any): Promise<void>;
|
|
35
|
+
declare function collectNuxtDoctorRulePacks(nuxt: any): Promise<RulePack[]>;
|
|
36
|
+
declare function collectNuxtDoctorExtensions(nuxt: any): Promise<DoctorExtension[]>;
|
|
37
|
+
declare function writeManifest(nuxt: any, evidence?: NuxtDoctorEvidence): Promise<NuxtDoctorManifest>;
|
|
32
38
|
//#endregion
|
|
33
39
|
export { writeManifest as a, nuxtDoctorModule as i, collectNuxtDoctorExtensions as n, collectNuxtDoctorRulePacks as r, NuxtDoctorModuleOptions as t };
|
package/dist/nuxt.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-
|
|
1
|
+
import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-uWErbEZU.mjs";
|
|
2
2
|
export { type NuxtDoctorModuleOptions, nuxtDoctorModule as default };
|
package/dist/nuxt.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as nuxtDoctorModule } from "./module
|
|
1
|
+
import { r as nuxtDoctorModule } from "./module--Dgf9XPW.mjs";
|
|
2
2
|
export { nuxtDoctorModule as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as DoctorExtension } from "./primitives-
|
|
2
|
-
import { n as DoctorRunOptions, t as DoctorConfig } from "./config-
|
|
1
|
+
import { t as DoctorExtension } from "./primitives-BKt7lsYN.mjs";
|
|
2
|
+
import { n as DoctorRunOptions, t as DoctorConfig } from "./config-BUjI8Z-S.mjs";
|
|
3
|
+
import "./index-BhX8IsSY.mjs";
|
|
3
4
|
import { Plugin } from "vite";
|
|
4
|
-
|
|
5
5
|
//#region src/plugin.d.ts
|
|
6
6
|
interface ViteDoctorSurfaceOptions {
|
|
7
7
|
enabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as defineDoctorExtension, n as createReport } from "./core-
|
|
2
|
-
import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-
|
|
1
|
+
import { f as defineDoctorExtension, n as createReport } from "./core-BFSgtrql.mjs";
|
|
2
|
+
import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-6AYPdd9f.mjs";
|
|
3
3
|
import { resolve } from "pathe";
|
|
4
4
|
//#region src/plugin.ts
|
|
5
5
|
function doctor(options = {}) {
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-
|
|
1
|
+
import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-Cbc4OqZF.mjs";
|
|
2
2
|
export { ViteDoctorSurfaceOptions, doctor };
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as doctor } from "./plugin-
|
|
1
|
+
import { t as doctor } from "./plugin-DF-TEW82.mjs";
|
|
2
2
|
export { doctor };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Diagnostic } from "nostics";
|
|
2
|
-
|
|
3
2
|
//#region src/core/primitives.d.ts
|
|
4
3
|
type DoctorSeverity = "blocker" | "error" | "warn" | "info";
|
|
5
4
|
type DoctorRuleConfig = "off" | DoctorSeverity | [DoctorSeverity, unknown];
|
|
@@ -175,11 +174,14 @@ interface AutoImportEntry {
|
|
|
175
174
|
from: string;
|
|
176
175
|
kind: "nuxt" | "vue" | "module" | "app" | "layer";
|
|
177
176
|
sourceLayer?: string;
|
|
177
|
+
type?: boolean;
|
|
178
178
|
}
|
|
179
179
|
interface NuxtProjectInfo {
|
|
180
180
|
version: string;
|
|
181
181
|
appDir: string;
|
|
182
182
|
appRoots: string[];
|
|
183
|
+
autoImportEnabled: boolean;
|
|
184
|
+
autoImportsAuthoritative: boolean;
|
|
183
185
|
autoImports: Map<string, AutoImportEntry>;
|
|
184
186
|
components: Map<string, {
|
|
185
187
|
name: string;
|
|
@@ -213,6 +215,16 @@ interface NuxtProjectInfo {
|
|
|
213
215
|
pluginFiles: string[];
|
|
214
216
|
keyedComposables: string[];
|
|
215
217
|
aliases: Record<string, string>;
|
|
218
|
+
autoImportTransform?: {
|
|
219
|
+
include: Array<{
|
|
220
|
+
source: string;
|
|
221
|
+
flags: string;
|
|
222
|
+
}>;
|
|
223
|
+
exclude: Array<{
|
|
224
|
+
source: string;
|
|
225
|
+
flags: string;
|
|
226
|
+
}>;
|
|
227
|
+
};
|
|
216
228
|
appScanRoots: string[];
|
|
217
229
|
sharedScanRoots: string[];
|
|
218
230
|
hasManifest: boolean;
|
|
@@ -258,6 +270,17 @@ interface NuxtDoctorManifest {
|
|
|
258
270
|
srcDir: string;
|
|
259
271
|
appDir: string;
|
|
260
272
|
buildDir: string;
|
|
273
|
+
autoImportEnabled?: boolean;
|
|
274
|
+
autoImportTransform?: {
|
|
275
|
+
include: Array<{
|
|
276
|
+
source: string;
|
|
277
|
+
flags: string;
|
|
278
|
+
}>;
|
|
279
|
+
exclude: Array<{
|
|
280
|
+
source: string;
|
|
281
|
+
flags: string;
|
|
282
|
+
}>;
|
|
283
|
+
};
|
|
261
284
|
autoImports: unknown[];
|
|
262
285
|
components: unknown[];
|
|
263
286
|
layers: Array<{
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-Dt29Fkqo.mjs";
|
|
2
|
+
import "../../index-D9d8HxE4.mjs";
|
|
2
3
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-
|
|
2
|
-
import "../../nitro-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-DYysUGLM.mjs";
|
|
2
|
+
import "../../nitro-BVeI5VWP.mjs";
|
|
3
3
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../index-Dt29Fkqo.mjs";
|
|
2
2
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-
|
|
1
|
+
import { _ as noUseNuxtAppInNitro, a as preferValidatedRouterParams, c as noBrowserApiInServer, d as preferH3RedirectResponse, f as noRemovedH3Send, g as noNavigateToInNitro, h as requireEventRuntimeConfigInServer, i as preferAssertMethod, l as noClientComposablesInServer, m as noEventRuntimeConfigInServer, n as preferGetRequestIp, o as preferValidatedQuery, p as noV2Imports, r as preferRouteMethodSuffix, s as preferValidatedBody, t as nitroRulePack, u as preferH3WithBase } from "../../rules-DYysUGLM.mjs";
|
|
2
2
|
export { nitroRulePack, noBrowserApiInServer, noClientComposablesInServer, noEventRuntimeConfigInServer, noNavigateToInNitro, noRemovedH3Send, noUseNuxtAppInNitro, noV2Imports, preferAssertMethod, preferGetRequestIp, preferH3RedirectResponse, preferH3WithBase, preferRouteMethodSuffix, preferValidatedBody, preferValidatedQuery, preferValidatedRouterParams, requireEventRuntimeConfigInServer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest } from "../../primitives-
|
|
2
|
-
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-
|
|
1
|
+
import { a as NuxtDoctorManifest } from "../../primitives-BKt7lsYN.mjs";
|
|
2
|
+
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-uWErbEZU.mjs";
|
|
3
3
|
export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module
|
|
1
|
+
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module--Dgf9XPW.mjs";
|
|
2
2
|
export { collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as NuxtDoctorManifest } from "../../primitives-
|
|
2
|
-
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-
|
|
1
|
+
import { a as NuxtDoctorManifest } from "../../primitives-BKt7lsYN.mjs";
|
|
2
|
+
import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-uWErbEZU.mjs";
|
|
3
3
|
export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module
|
|
1
|
+
import { i as writeManifest, n as collectNuxtDoctorRulePacks, r as nuxtDoctorModule, t as collectNuxtDoctorExtensions } from "../../module--Dgf9XPW.mjs";
|
|
2
2
|
export { collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { o as RulePack, t as DoctorExtension } from "../../../primitives-
|
|
2
|
-
import
|
|
1
|
+
import { o as RulePack, t as DoctorExtension } from "../../../primitives-BKt7lsYN.mjs";
|
|
2
|
+
import "../../../index-BhX8IsSY.mjs";
|
|
3
|
+
import { t as nitroRulePack } from "../../../index-Dt29Fkqo.mjs";
|
|
4
|
+
import "../../../index-D9d8HxE4.mjs";
|
|
3
5
|
//#region src/rule-packs/nuxt/rules/nuxt/index.d.ts
|
|
4
6
|
declare const nuxtRulePack: RulePack;
|
|
5
7
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as nitroRulePack } from "../../../rules-
|
|
2
|
-
import { a as nuxtImageRulePack, c as nuxtScriptsRulePack, d as nuxtRulePack, i as nuxtHubRulePack, l as nuxtUiRulePack, n as nuxtRulePacks, o as nuxtBetterAuthRulePack, r as docusRulePack, s as vueUseRulePack, t as nuxtDoctorExtensions, u as nuxtContentRulePack } from "../../../rules-
|
|
1
|
+
import { t as nitroRulePack } from "../../../rules-DYysUGLM.mjs";
|
|
2
|
+
import { a as nuxtImageRulePack, c as nuxtScriptsRulePack, d as nuxtRulePack, i as nuxtHubRulePack, l as nuxtUiRulePack, n as nuxtRulePacks, o as nuxtBetterAuthRulePack, r as docusRulePack, s as vueUseRulePack, t as nuxtDoctorExtensions, u as nuxtContentRulePack } from "../../../rules-BTFofRie.mjs";
|
|
3
3
|
export { docusRulePack, nitroRulePack, nuxtBetterAuthRulePack, nuxtContentRulePack, nuxtDoctorExtensions, nuxtHubRulePack, nuxtImageRulePack, nuxtRulePack, nuxtRulePacks, nuxtScriptsRulePack, nuxtUiRulePack, vueUseRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../index-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../index-CuZnkOun.mjs";
|
|
2
2
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../rules-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../rules-BFAxpIuo.mjs";
|
|
2
2
|
export { noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern, viteRulePack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../index-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../index-CuZnkOun.mjs";
|
|
2
2
|
export { viteRulePack as default, noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../rules-
|
|
1
|
+
import { S as noUnusedDefine, _ as noUntypedEnv, a as noBroadFsAllow, b as noSecretDefine, c as noDynamicWorkerUrl, d as noDynamicNewUrl, f as noPublicSrcImport, g as noEmptyEnvPrefix, h as noClientSecretPattern, i as requirePluginName, l as noNodeApiInWorker, m as noBroadEnvPrefix, n as preferTransformFilter, o as noDisabledFsStrict, p as noSrcAbsolutePublicUrl, r as requireDisposeForSideEffects, s as noBrowserGlobalInSsrEntry, t as viteRulePack, u as requireWorkerUrlPattern, v as preferDirectImportMetaEnvAccess, x as noUntypedDefine, y as noRuntimeObjectDefine } from "../../../rules-BFAxpIuo.mjs";
|
|
2
2
|
export { viteRulePack as default, noBroadEnvPrefix, noBroadFsAllow, noBrowserGlobalInSsrEntry, noClientSecretPattern, noDisabledFsStrict, noDynamicNewUrl, noDynamicWorkerUrl, noEmptyEnvPrefix, noNodeApiInWorker, noPublicSrcImport, noRuntimeObjectDefine, noSecretDefine, noSrcAbsolutePublicUrl, noUntypedDefine, noUntypedEnv, noUnusedDefine, preferDirectImportMetaEnvAccess, preferTransformFilter, requireDisposeForSideEffects, requirePluginName, requireWorkerUrlPattern };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-
|
|
1
|
+
import { C as htmlButtonHasType, E as definePropsWatchGetter, S as preferUseTemplateRef, T as noRefAsOperand, _ as noAsyncWatchEffectAfterAwaitRead, a as preferComposableRefReturn, b as noBrowserApiInSetup, c as preferDefineModel, d as preferUseIdForStableIds, f as requireLifecycleCleanup, g as requireWatcherCleanup, h as requirePostFlushForDomWatch, i as preferSameNamePropShorthand, l as dataAllowMismatchSurgical, m as preferUseEventListener, n as noUntranslatedText, o as preferTypeProps, p as noMutationInOnUpdated, r as noUnusedTranslations, s as preferPropsDestructureDefaults, t as vueRulePack, u as noRandomOrLocalTimeRender, v as noSetupPropsDestructure, w as noOnWatcherCleanupAfterAwait, x as preferTrueAttributeShorthand, y as restrictVHtml } from "../../rules-CKaNAD2c.mjs";
|
|
2
2
|
export { dataAllowMismatchSurgical, definePropsWatchGetter, htmlButtonHasType, noAsyncWatchEffectAfterAwaitRead, noBrowserApiInSetup, noMutationInOnUpdated, noOnWatcherCleanupAfterAwait, noRandomOrLocalTimeRender, noRefAsOperand, noSetupPropsDestructure, noUntranslatedText, noUnusedTranslations, preferComposableRefReturn, preferDefineModel, preferPropsDestructureDefaults, preferSameNamePropShorthand, preferTrueAttributeShorthand, preferTypeProps, preferUseEventListener, preferUseIdForStableIds, preferUseTemplateRef, requireLifecycleCleanup, requirePostFlushForDomWatch, requireWatcherCleanup, restrictVHtml, vueRulePack };
|