vite-doctor 0.0.6 → 0.0.7

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 (55) hide show
  1. package/dist/cli.mjs +2 -2
  2. package/dist/{config-BUjI8Z-S.d.mts → config-GYUYW1FL.d.mts} +1 -1
  3. package/dist/config.d.mts +1 -1
  4. package/dist/{core-BFSgtrql.mjs → core-jvU53IG0.mjs} +128 -32
  5. package/dist/{doctor-6AYPdd9f.mjs → doctor-CPU6PJkE.mjs} +13 -8
  6. package/dist/index-BZSYm1ow.d.mts +29 -0
  7. package/dist/{index-CuZnkOun.d.mts → index-CC_PA_16.d.mts} +1 -1
  8. package/dist/index-CpbGR6NE.d.mts +3 -0
  9. package/dist/{index-Dt29Fkqo.d.mts → index-ST_3aaT7.d.mts} +1 -1
  10. package/dist/index-tu1l5mxN.d.mts +1 -0
  11. package/dist/index.d.mts +2 -2
  12. package/dist/index.mjs +1 -1
  13. package/dist/{module-uWErbEZU.d.mts → module-B-h3EZka.d.mts} +3 -3
  14. package/dist/nitro-DUjsFYpW.mjs +2 -0
  15. package/dist/nuxt.d.mts +1 -1
  16. package/dist/{plugin-DF-TEW82.mjs → plugin-BUgSIN2M.mjs} +2 -2
  17. package/dist/{plugin-Cbc4OqZF.d.mts → plugin-C3bX7b3u.d.mts} +3 -3
  18. package/dist/plugin.d.mts +1 -1
  19. package/dist/plugin.mjs +1 -1
  20. package/dist/{primitives-BKt7lsYN.d.mts → primitives-BB8AakLb.d.mts} +3 -0
  21. package/dist/rule-packs/nitro/index.d.mts +2 -2
  22. package/dist/rule-packs/nitro/index.mjs +2 -2
  23. package/dist/rule-packs/nitro/rules.d.mts +1 -1
  24. package/dist/rule-packs/nitro/rules.mjs +1 -1
  25. package/dist/rule-packs/nuxt/index.d.mts +2 -2
  26. package/dist/rule-packs/nuxt/module.d.mts +2 -2
  27. package/dist/rule-packs/nuxt/rules/index.d.mts +4 -4
  28. package/dist/rule-packs/nuxt/rules/index.mjs +2 -2
  29. package/dist/rule-packs/typescript/index.d.mts +2 -0
  30. package/dist/rule-packs/typescript/index.mjs +3 -0
  31. package/dist/rule-packs/typescript/rules/index.d.mts +2 -0
  32. package/dist/rule-packs/typescript/rules/index.mjs +2 -0
  33. package/dist/rule-packs/vite/index.d.mts +1 -1
  34. package/dist/rule-packs/vite/index.mjs +1 -1
  35. package/dist/rule-packs/vite/rules/index.d.mts +1 -1
  36. package/dist/rule-packs/vite/rules/index.mjs +1 -1
  37. package/dist/rule-packs/vue/index.d.mts +1 -1
  38. package/dist/rule-packs/vue/index.mjs +1 -1
  39. package/dist/rule-packs/vue/rules.d.mts +1 -1
  40. package/dist/rule-packs/vue/rules.mjs +1 -1
  41. package/dist/{rules-BTFofRie.mjs → rules-B3yMC9sr.mjs} +4 -4
  42. package/dist/{rules-CKaNAD2c.d.mts → rules-BW08SCmi.d.mts} +1 -1
  43. package/dist/rules-BYSi5HL7.mjs +2 -0
  44. package/dist/rules-C5pNbGfH.mjs +637 -0
  45. package/dist/{rules-Dfp82SAy.mjs → rules-Coo8Oc8h.mjs} +2 -1
  46. package/dist/{rules-BFAxpIuo.mjs → rules-DZdYc6nv.mjs} +1 -1
  47. package/dist/{rules-DYysUGLM.mjs → rules-wGXdGC9F.mjs} +1 -1
  48. package/dist/rules.d.mts +1 -1
  49. package/dist/rules.mjs +2 -2
  50. package/dist/typescript-BzDAG0C4.mjs +2 -0
  51. package/package.json +4 -1
  52. package/dist/index-BhX8IsSY.d.mts +0 -3
  53. package/dist/index-D9d8HxE4.d.mts +0 -1
  54. package/dist/nitro-BVeI5VWP.mjs +0 -2
  55. package/dist/rules-CHyYwZV9.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-BFSgtrql.mjs";
3
- import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-6AYPdd9f.mjs";
2
+ import { c as cleanCache, i as explainRule, l as evaluateRuleApplicability, n as createReport, r as createRulesReport, u as detectProject } from "./core-jvU53IG0.mjs";
3
+ import { i as viteDoctorVersion, n as shouldFailDoctorRun, r as viteDoctorRulePacks, t as runViteDoctor } from "./doctor-CPU6PJkE.mjs";
4
4
  import { relative, resolve } from "pathe";
5
5
  import { realpathSync, statSync } from "node:fs";
6
6
  import { fileURLToPath } from "node:url";
@@ -1,4 +1,4 @@
1
- import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-BKt7lsYN.mjs";
1
+ import { i as DoctorSerializableConfig, n as DoctorFramework, s as RuntimeTarget, t as DoctorExtension } from "./primitives-BB8AakLb.mjs";
2
2
  //#region src/core/config.d.ts
3
3
  interface DoctorConfig extends DoctorSerializableConfig {
4
4
  extensions?: DoctorExtension[];
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-BUjI8Z-S.mjs";
1
+ import { a as loadDoctorConfig, i as defineDoctorConfig, n as DoctorRunOptions, r as LoadDoctorConfigOptions, t as DoctorConfig } from "./config-GYUYW1FL.mjs";
2
2
  export { type DoctorConfig, type DoctorRunOptions, type LoadDoctorConfigOptions, defineDoctorConfig, loadDoctorConfig };
@@ -1,7 +1,7 @@
1
1
  import "./config-cx1PzoSm.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname, join, relative, resolve } from "pathe";
4
- import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
4
+ import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
5
5
  import { createHash } from "node:crypto";
6
6
  import * as oxcParser from "oxc-parser";
7
7
  import { parseSync } from "oxc-parser";
@@ -24,7 +24,7 @@ function parseScript(file, source, lang = langFromFile(file)) {
24
24
  }
25
25
  }
26
26
  function langFromFile(file) {
27
- return file.endsWith(".tsx") ? "tsx" : file.endsWith(".jsx") ? "jsx" : file.endsWith(".ts") || file.endsWith(".vue") ? "ts" : "js";
27
+ return file.endsWith(".tsx") ? "tsx" : file.endsWith(".jsx") ? "jsx" : file.endsWith(".ts") || file.endsWith(".mts") || file.endsWith(".cts") || file.endsWith(".vue") ? "ts" : "js";
28
28
  }
29
29
  //#endregion
30
30
  //#region src/core/internal/template.ts
@@ -583,6 +583,7 @@ async function detectProject(root, requested = "auto", runtimeTarget) {
583
583
  const targeted = applyRuntimeTarget(detectedGraph, framework === "nuxt" ? resolveNuxtCompatibility(root, detectedGraph, manifest) : void 0, runtimeTarget);
584
584
  const resolvedNuxtVersion = targeted.graph.packages.nuxt?.version;
585
585
  const resolvedVueVersion = targeted.graph.packages.vue?.version;
586
+ const tsconfigPath = existsSync(join(root, "tsconfig.json")) ? join(root, "tsconfig.json") : void 0;
586
587
  return {
587
588
  root: resolve(root),
588
589
  framework,
@@ -591,12 +592,56 @@ async function detectProject(root, requested = "auto", runtimeTarget) {
591
592
  nuxtVersion: nuxt ? resolvedNuxtVersion ?? cleanVersion(nuxtVersion ?? nuxt.version) : void 0,
592
593
  isMonorepo,
593
594
  packageName: packageJson?.name,
594
- tsconfigPath: existsSync(join(root, "tsconfig.json")) ? join(root, "tsconfig.json") : void 0,
595
+ tsconfigPath,
596
+ languages: await detectProjectLanguages(root, Boolean(tsconfigPath)),
595
597
  nuxt,
596
598
  runtimeGraph: targeted.graph,
597
599
  nuxtCompatibility: targeted.compatibility
598
600
  };
599
601
  }
602
+ async function detectProjectLanguages(root, hasTsconfig) {
603
+ let hasTypeScript = hasTsconfig;
604
+ let hasJavaScript = false;
605
+ for await (const entry of glob("**/*.{vue,ts,tsx,mts,cts,js,jsx,mjs,cjs}", {
606
+ cwd: root,
607
+ exclude: [
608
+ "**/node_modules/**",
609
+ "**/dist/**",
610
+ "**/.nuxt/**",
611
+ "**/.next/**",
612
+ "**/.output/**",
613
+ "**/coverage/**",
614
+ "**/generated/**"
615
+ ]
616
+ })) {
617
+ if (typeof entry !== "string") continue;
618
+ if (/\.(?:ts|tsx|mts|cts)$/.test(entry)) hasTypeScript = true;
619
+ if (/\.(?:js|jsx|mjs|cjs)$/.test(entry)) hasJavaScript = true;
620
+ if (entry.endsWith(".vue")) {
621
+ const languages = detectVueScriptLanguages(root, entry);
622
+ hasTypeScript ||= languages.includes("typescript");
623
+ hasJavaScript ||= languages.includes("javascript");
624
+ }
625
+ if (hasTypeScript && hasJavaScript) break;
626
+ }
627
+ return [...hasTypeScript ? ["typescript"] : [], ...hasJavaScript ? ["javascript"] : []];
628
+ }
629
+ function detectVueScriptLanguages(root, file) {
630
+ try {
631
+ let hasTypeScript = false;
632
+ let hasJavaScript = false;
633
+ const source = readFileSync(join(root, file), "utf8");
634
+ for (const match of source.matchAll(/<script\b([^>]*)>/gi)) {
635
+ const langMatch = match[1]?.match(/\blang\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s"'=<>`]+))/i);
636
+ const lang = (langMatch?.[1] ?? langMatch?.[2] ?? langMatch?.[3] ?? "js").toLowerCase();
637
+ if (lang === "ts" || lang === "tsx") hasTypeScript = true;
638
+ if (lang === "js" || lang === "jsx") hasJavaScript = true;
639
+ }
640
+ return [...hasTypeScript ? ["typescript"] : [], ...hasJavaScript ? ["javascript"] : []];
641
+ } catch {
642
+ return [];
643
+ }
644
+ }
600
645
  function hasVueSsrEvidence(packageJson, deps) {
601
646
  if (Object.keys(deps).some((name) => /^(vitepress|vuepress|@vuepress\/|@vue\/server-renderer|vite-ssg|vite-plugin-ssr|vike|nuxt)$/.test(name))) return true;
602
647
  return Object.values(packageJson?.scripts ?? {}).some((script) => /\b(vitepress|vuepress|vite-ssg|vike|vite\s+build\s+--ssr)\b/.test(script));
@@ -714,11 +759,13 @@ function extendsDocus(root) {
714
759
  //#endregion
715
760
  //#region src/core/internal/source-inventory.ts
716
761
  const DEFAULT_INCLUDE = [
717
- "**/*.{vue,ts,tsx,js,mjs,cjs}",
762
+ "**/*.{vue,ts,tsx,mts,cts,js,jsx,mjs,cjs}",
718
763
  "vite.config.{ts,js,mjs,cjs,mts,cts}",
719
764
  "vitest.config.{ts,js,mjs,cjs,mts,cts}"
720
765
  ];
721
766
  const CONTENT_INCLUDE = ["content/**/*.{md,mdc}"];
767
+ const GENERATED_HEADER_BYTES = 800;
768
+ const GENERATED_HEADER_PATTERN = /@generated|generated by|do not edit|auto-generated/i;
722
769
  const DEFAULT_EXCLUDE = [
723
770
  "**/node_modules/**",
724
771
  "**/.nuxt/**",
@@ -728,18 +775,17 @@ const DEFAULT_EXCLUDE = [
728
775
  "**/coverage/**",
729
776
  "**/public/**",
730
777
  "**/generated/**",
731
- "**/*.min.{js,mjs,cjs}",
732
- "**/{test,tests,__tests__,fixtures}/**",
733
- "**/*.{test,spec}.{ts,tsx,js,mjs,cjs,vue}",
778
+ "**/*.generated.{ts,tsx,mts,cts,js,jsx,mjs,cjs,vue}",
779
+ "**/*.min.{ts,tsx,mts,cts,js,jsx,mjs,cjs}",
780
+ "**/{test,tests,__tests__,__snapshots__,fixtures,test-d,typetest,__typetest__,type-tests,dts-test,dtslint}/**",
781
+ "**/*.{test,spec}.{ts,tsx,mts,cts,js,jsx,mjs,cjs,vue}",
734
782
  "doctor.config.*"
735
783
  ];
736
784
  async function selectScanFiles(root, config, options, project) {
737
785
  if (options.changed || options.since) {
738
786
  const changed = await gitChangedFiles(root, options.since);
739
- if (changed.length) {
740
- const includeContent = hasContentFiles(project);
741
- return changed.filter((file) => includeContent ? /\.(vue|[cm]?[jt]sx?|mdc?)$/.test(file) : /\.(vue|[cm]?[jt]sx?)$/.test(file)).filter((file) => statSync(resolve(root, file), { throwIfNoEntry: false })?.isFile()).map((file) => createAppFileEntry(root, file));
742
- }
787
+ const includeContent = hasContentFiles(project);
788
+ return changed.filter((file) => includeContent ? /\.(vue|[cm]?[jt]sx?|mdc?)$/.test(file) : /\.(vue|[cm]?[jt]sx?)$/.test(file)).filter((file) => isScannableFile(resolve(root, file))).map((file) => createAppFileEntry(root, file));
743
789
  }
744
790
  const files = /* @__PURE__ */ new Map();
745
791
  const exclude = [...DEFAULT_EXCLUDE, ...config.exclude ?? []];
@@ -750,7 +796,7 @@ async function selectScanFiles(root, config, options, project) {
750
796
  })) {
751
797
  if (typeof entry !== "string") continue;
752
798
  const absolute = resolve(root, entry);
753
- if (statSync(absolute, { throwIfNoEntry: false })?.isFile()) files.set(absolute, createAppFileEntry(root, entry));
799
+ if (isScannableFile(absolute)) files.set(absolute, createAppFileEntry(root, entry));
754
800
  }
755
801
  for (const source of project.nuxt?.moduleSources ?? []) {
756
802
  const include = source.include?.length ? source.include : DEFAULT_INCLUDE;
@@ -761,7 +807,7 @@ async function selectScanFiles(root, config, options, project) {
761
807
  })) {
762
808
  if (typeof entry !== "string") continue;
763
809
  const absolute = resolve(source.root, entry);
764
- if (!statSync(absolute, { throwIfNoEntry: false })?.isFile()) continue;
810
+ if (!isScannableFile(absolute)) continue;
765
811
  files.set(absolute, {
766
812
  path: absolute,
767
813
  displayPath: `${source.module}:${relative(source.root, absolute)}`,
@@ -772,6 +818,19 @@ async function selectScanFiles(root, config, options, project) {
772
818
  }
773
819
  return [...files.values()].sort((a, b) => a.displayPath.localeCompare(b.displayPath));
774
820
  }
821
+ function isScannableFile(file) {
822
+ return Boolean(statSync(file, { throwIfNoEntry: false })?.isFile()) && !hasGeneratedHeader(file);
823
+ }
824
+ function hasGeneratedHeader(file) {
825
+ const descriptor = openSync(file, "r");
826
+ try {
827
+ const buffer = Buffer.alloc(GENERATED_HEADER_BYTES);
828
+ const bytesRead = readSync(descriptor, buffer, 0, buffer.length, 0);
829
+ return GENERATED_HEADER_PATTERN.test(buffer.toString("utf8", 0, bytesRead));
830
+ } finally {
831
+ closeSync(descriptor);
832
+ }
833
+ }
775
834
  function defaultIncludeForProject(project) {
776
835
  if (hasContentFiles(project)) return [...DEFAULT_INCLUDE, ...CONTENT_INCLUDE];
777
836
  return DEFAULT_INCLUDE;
@@ -792,23 +851,19 @@ function detectAppSourceKind(root, file) {
792
851
  return relative(root, file).startsWith("layers/") ? "layer" : "app";
793
852
  }
794
853
  async function gitChangedFiles(root, since) {
795
- try {
796
- return (await execFileText("git", since ? [
797
- "diff",
798
- "--name-only",
799
- "--diff-filter=ACMR",
800
- since,
801
- "--"
802
- ] : [
803
- "diff",
804
- "--name-only",
805
- "--diff-filter=ACMR",
806
- "--cached",
807
- "--"
808
- ], root)).split(/\r?\n/).filter(Boolean);
809
- } catch {
810
- return [];
811
- }
854
+ return (await execFileText("git", since ? [
855
+ "diff",
856
+ "--name-only",
857
+ "--diff-filter=ACMR",
858
+ since,
859
+ "--"
860
+ ] : [
861
+ "diff",
862
+ "--name-only",
863
+ "--diff-filter=ACMR",
864
+ "--cached",
865
+ "--"
866
+ ], root)).split(/\r?\n/).filter(Boolean);
812
867
  }
813
868
  function execFileText(command, args, cwd) {
814
869
  return new Promise((resolvePromise, reject) => {
@@ -1262,6 +1317,11 @@ function evaluatePackActivation(pack, project) {
1262
1317
  if (pack.activation.nuxt && project.framework !== "nuxt") return inactive(`Rule Pack ${pack.name} requires a Nuxt project.`);
1263
1318
  const results = [];
1264
1319
  if (pack.activation.nuxt) results.push(evaluateRuntimeRange(project, "nuxt", pack.activation.nuxt));
1320
+ if (pack.activation.languages?.length) {
1321
+ const languages = new Set(project.languages ?? []);
1322
+ const matched = pack.activation.languages.some((language) => languages.has(language));
1323
+ results.push(matched ? active() : inactive(`Rule Pack ${pack.name} language activation did not match.`));
1324
+ }
1265
1325
  if (Boolean(pack.activation.packages?.length || pack.activation.modules?.length)) {
1266
1326
  const moduleNames = new Set((project.nuxt?.modules ?? []).map((module) => module.name));
1267
1327
  const matched = pack.activation.packages?.some((name) => moduleNames.has(name)) || pack.activation.modules?.some((name) => moduleNames.has(name));
@@ -1491,6 +1551,10 @@ function resolveExtends(packs, options, project) {
1491
1551
  if (requested === "auto") return new Set(packs.filter((pack) => evaluatePackActivation(pack, project).state === "active").flatMap((pack) => pack.presets.recommended));
1492
1552
  const selected = /* @__PURE__ */ new Set();
1493
1553
  for (const entry of requested) {
1554
+ if (entry === "auto") {
1555
+ for (const ruleId of packs.filter((pack) => evaluatePackActivation(pack, project).state === "active").flatMap((pack) => pack.presets.recommended)) selected.add(ruleId);
1556
+ continue;
1557
+ }
1494
1558
  const slash = entry.lastIndexOf("/");
1495
1559
  if (slash === -1) throw doctorInternalDiagnostics.DOC0016({ entry });
1496
1560
  const packKey = entry.slice(0, slash);
@@ -2289,6 +2353,38 @@ const allDoctorDiagnosticRegistry = defineDoctorDiagnostics([
2289
2353
  code: "VITE0021",
2290
2354
  ruleId: "vite/worker/require-worker-url-pattern"
2291
2355
  },
2356
+ {
2357
+ code: "TS0001",
2358
+ ruleId: "typescript/evidence/no-chained-type-assertions"
2359
+ },
2360
+ {
2361
+ code: "TS0002",
2362
+ ruleId: "typescript/evidence/no-object-parameters"
2363
+ },
2364
+ {
2365
+ code: "TS0003",
2366
+ ruleId: "typescript/evidence/no-unknown-type-aliases"
2367
+ },
2368
+ {
2369
+ code: "TS0004",
2370
+ ruleId: "typescript/evidence/no-caller-chosen-result-type"
2371
+ },
2372
+ {
2373
+ code: "TS0005",
2374
+ ruleId: "typescript/boundaries/no-unvalidated-deserialization"
2375
+ },
2376
+ {
2377
+ code: "TS0006",
2378
+ ruleId: "typescript/style/no-conditional-empty-object-spread"
2379
+ },
2380
+ {
2381
+ code: "TS0007",
2382
+ ruleId: "typescript/strict/no-runtime-typeof"
2383
+ },
2384
+ {
2385
+ code: "TS0008",
2386
+ ruleId: "typescript/strict/require-safety-comment-for-type-assertion"
2387
+ },
2292
2388
  {
2293
2389
  code: "NITRO0001",
2294
2390
  ruleId: "nitro/context/no-navigateto-in-nitro"
@@ -2780,8 +2876,8 @@ function normalizeDiagnosticFromRuleCode(input) {
2780
2876
  };
2781
2877
  }
2782
2878
  function nearestAnchor(source, offset) {
2783
- const last = [...source.slice(0, offset).matchAll(/\b(?:export\s+)?(?:async\s+)?function\s+([A-Za-z_$][\w$]*)|\b(?:const|let|var)\s+([A-Za-z_$][\w$]*)|<([A-Z][\w.-]*)\b/g)].at(-1);
2784
- return last ? last[1] ?? last[2] ?? last[3] ?? "file" : "file";
2879
+ const last = [...source.slice(0, offset).matchAll(/\b(?:export\s+)?(?:async\s+)?function\s+([A-Za-z_$][\w$]*)|\b(?:const|let|var)\s+(?:([A-Za-z_$][\w$]*)|(\{[^}\n]*\}|\[[^\]\n]*\]))|<([A-Z][\w.-]*)\b/g)].at(-1);
2880
+ return last ? last[1] ?? last[2] ?? last[3] ?? last[4] ?? "file" : "file";
2785
2881
  }
2786
2882
  function pushDiagnostic(session, diagnostic) {
2787
2883
  const normalized = normalizeDiagnosticFromRuleCode(diagnostic);
@@ -1,10 +1,12 @@
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";
1
+ import { f as defineDoctorExtension, t as runDoctor } from "./core-jvU53IG0.mjs";
2
+ import { t as nitroRulePack } from "./rules-wGXdGC9F.mjs";
3
+ import "./nitro-DUjsFYpW.mjs";
4
+ import { t as vueRulePack } from "./rules-Coo8Oc8h.mjs";
5
+ import { n as nuxtRulePacks, t as nuxtDoctorExtensions } from "./rules-B3yMC9sr.mjs";
6
+ import { t as viteRulePack } from "./rules-DZdYc6nv.mjs";
7
+ import "./rules-BYSi5HL7.mjs";
8
+ import { t as typescriptRulePack } from "./rules-C5pNbGfH.mjs";
9
+ import "./typescript-BzDAG0C4.mjs";
8
10
  import { join } from "pathe";
9
11
  import { existsSync, readFileSync } from "node:fs";
10
12
  //#region src/version.ts
@@ -21,7 +23,7 @@ function readPackageVersion() {
21
23
  //#region src/doctor.ts
22
24
  async function viteDoctorRulePacks(options = {}) {
23
25
  const framework = detectRequestedFramework(options);
24
- const packs = [viteRulePack];
26
+ const packs = [viteRulePack, typescriptRulePack];
25
27
  if (framework === "vue") packs.push(vueRulePack);
26
28
  if (framework === "nitro") packs.push(nitroRulePack);
27
29
  if (framework === "nuxt") packs.push(...nuxtRulePacks());
@@ -32,6 +34,9 @@ async function viteDoctorExtensions(options = {}) {
32
34
  const extensions = [defineDoctorExtension({
33
35
  name: "vite-doctor/builtin-vite",
34
36
  rulePacks: [viteRulePack]
37
+ }), defineDoctorExtension({
38
+ name: "vite-doctor/builtin-typescript",
39
+ rulePacks: [typescriptRulePack]
35
40
  })];
36
41
  if (framework === "vue") extensions.push(defineDoctorExtension({
37
42
  name: "vite-doctor/builtin-vue",
@@ -0,0 +1,29 @@
1
+ import { o as RulePack, r as DoctorRule } from "./primitives-BB8AakLb.mjs";
2
+ //#region src/rule-packs/typescript/rules/no-caller-chosen-result-type.d.ts
3
+ declare const noCallerChosenResultType: DoctorRule;
4
+ //#endregion
5
+ //#region src/rule-packs/typescript/rules/no-chained-type-assertions.d.ts
6
+ declare const noChainedTypeAssertions: DoctorRule;
7
+ //#endregion
8
+ //#region src/rule-packs/typescript/rules/no-conditional-empty-object-spread.d.ts
9
+ declare const noConditionalEmptyObjectSpread: DoctorRule;
10
+ //#endregion
11
+ //#region src/rule-packs/typescript/rules/no-object-parameters.d.ts
12
+ declare const noObjectParameters: DoctorRule;
13
+ //#endregion
14
+ //#region src/rule-packs/typescript/rules/no-runtime-typeof.d.ts
15
+ declare const noRuntimeTypeof: DoctorRule;
16
+ //#endregion
17
+ //#region src/rule-packs/typescript/rules/no-unknown-type-aliases.d.ts
18
+ declare const noUnknownTypeAliases: DoctorRule;
19
+ //#endregion
20
+ //#region src/rule-packs/typescript/rules/no-unvalidated-deserialization.d.ts
21
+ declare const noUnvalidatedDeserialization: DoctorRule;
22
+ //#endregion
23
+ //#region src/rule-packs/typescript/rules/require-safety-comment-for-type-assertion.d.ts
24
+ declare const requireSafetyCommentForTypeAssertion: DoctorRule;
25
+ //#endregion
26
+ //#region src/rule-packs/typescript/rules/index.d.ts
27
+ declare const typescriptRulePack: RulePack;
28
+ //#endregion
29
+ export { noRuntimeTypeof as a, noChainedTypeAssertions as c, noUnknownTypeAliases as i, noCallerChosenResultType as l, requireSafetyCommentForTypeAssertion as n, noObjectParameters as o, noUnvalidatedDeserialization as r, noConditionalEmptyObjectSpread as s, typescriptRulePack as t };
@@ -1,4 +1,4 @@
1
- import { o as RulePack, r as DoctorRule } from "./primitives-BKt7lsYN.mjs";
1
+ import { o as RulePack, r as DoctorRule } from "./primitives-BB8AakLb.mjs";
2
2
  //#region src/rule-packs/vite/rules/define.d.ts
3
3
  declare const noUnusedDefine: DoctorRule;
4
4
  declare const noUntypedDefine: DoctorRule;
@@ -0,0 +1,3 @@
1
+ import "./primitives-BB8AakLb.mjs";
2
+ import "./config-GYUYW1FL.mjs";
3
+ import "nostics";
@@ -1,4 +1,4 @@
1
- import { o as RulePack, r as DoctorRule } from "./primitives-BKt7lsYN.mjs";
1
+ import { o as RulePack, r as DoctorRule } from "./primitives-BB8AakLb.mjs";
2
2
  //#region src/rule-packs/nitro/rules/no-use-nuxt-app-in-nitro.d.ts
3
3
  declare const noUseNuxtAppInNitro: DoctorRule;
4
4
  //#endregion
@@ -0,0 +1 @@
1
+ import "./index-ST_3aaT7.mjs";
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
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";
1
+ import { i as defineDoctorConfig, n as DoctorRunOptions, t as DoctorConfig } from "./config-GYUYW1FL.mjs";
2
+ import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-C3bX7b3u.mjs";
3
3
  export { type DoctorConfig, type DoctorRunOptions, type ViteDoctorSurfaceOptions, defineDoctorConfig, doctor };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as defineDoctorConfig } from "./config-cx1PzoSm.mjs";
2
- import { t as doctor } from "./plugin-DF-TEW82.mjs";
2
+ import { t as doctor } from "./plugin-BUgSIN2M.mjs";
3
3
  export { defineDoctorConfig, doctor };
@@ -1,6 +1,6 @@
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";
1
+ import { a as NuxtDoctorManifest, o as RulePack, t as DoctorExtension } from "./primitives-BB8AakLb.mjs";
2
+ import { t as DoctorConfig } from "./config-GYUYW1FL.mjs";
3
+ import "./index-CpbGR6NE.mjs";
4
4
  //#region src/rule-packs/nuxt/module.d.ts
5
5
  interface NuxtDoctorModuleOptions {
6
6
  config?: DoctorConfig;
@@ -0,0 +1,2 @@
1
+ import "./rules-wGXdGC9F.mjs";
2
+ export {};
package/dist/nuxt.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-uWErbEZU.mjs";
1
+ import { i as nuxtDoctorModule, t as NuxtDoctorModuleOptions } from "./module-B-h3EZka.mjs";
2
2
  export { type NuxtDoctorModuleOptions, nuxtDoctorModule as default };
@@ -1,5 +1,5 @@
1
- import { f as defineDoctorExtension, n as createReport } from "./core-BFSgtrql.mjs";
2
- import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-6AYPdd9f.mjs";
1
+ import { f as defineDoctorExtension, n as createReport } from "./core-jvU53IG0.mjs";
2
+ import { n as shouldFailDoctorRun, t as runViteDoctor } from "./doctor-CPU6PJkE.mjs";
3
3
  import { resolve } from "pathe";
4
4
  //#region src/plugin.ts
5
5
  function doctor(options = {}) {
@@ -1,6 +1,6 @@
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";
1
+ import { t as DoctorExtension } from "./primitives-BB8AakLb.mjs";
2
+ import { n as DoctorRunOptions, t as DoctorConfig } from "./config-GYUYW1FL.mjs";
3
+ import "./index-CpbGR6NE.mjs";
4
4
  import { Plugin } from "vite";
5
5
  //#region src/plugin.d.ts
6
6
  interface ViteDoctorSurfaceOptions {
package/dist/plugin.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-Cbc4OqZF.mjs";
1
+ import { n as doctor, t as ViteDoctorSurfaceOptions } from "./plugin-C3bX7b3u.mjs";
2
2
  export { ViteDoctorSurfaceOptions, doctor };
package/dist/plugin.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as doctor } from "./plugin-DF-TEW82.mjs";
1
+ import { t as doctor } from "./plugin-BUgSIN2M.mjs";
2
2
  export { doctor };
@@ -24,6 +24,7 @@ interface DoctorSerializableConfig {
24
24
  }
25
25
  type FixSafety = "safe" | "unsafe" | "suggestion" | "structural-review";
26
26
  type DoctorFramework = "vue" | "nuxt" | "vite" | "nitro";
27
+ type ProjectLanguage = "typescript" | "javascript";
27
28
  type RuntimePackageName = "nuxt" | "nitro" | "h3" | "vue";
28
29
  type ExecutionKind = "file" | "manifest" | "workspace" | "graph" | "type" | "duplication" | "health";
29
30
  type RuleCost = "tiny" | "small" | "medium" | "large" | "xlarge";
@@ -334,6 +335,7 @@ interface ProjectInfo {
334
335
  isMonorepo: boolean;
335
336
  packageName?: string;
336
337
  tsconfigPath?: string;
338
+ languages?: ProjectLanguage[];
337
339
  nuxt?: NuxtProjectInfo;
338
340
  runtimeGraph?: RuntimeGraph;
339
341
  nuxtCompatibility?: NuxtCompatibilityInfo;
@@ -524,6 +526,7 @@ interface RulePack {
524
526
  strict?: string[];
525
527
  } & Record<string, string[] | undefined>;
526
528
  activation?: {
529
+ languages?: ProjectLanguage[];
527
530
  packages?: string[];
528
531
  modules?: string[];
529
532
  nuxt?: string;
@@ -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 "../../index-Dt29Fkqo.mjs";
2
- import "../../index-D9d8HxE4.mjs";
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-ST_3aaT7.mjs";
2
+ import "../../index-tu1l5mxN.mjs";
3
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-DYysUGLM.mjs";
2
- import "../../nitro-BVeI5VWP.mjs";
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-wGXdGC9F.mjs";
2
+ import "../../nitro-DUjsFYpW.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-Dt29Fkqo.mjs";
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-ST_3aaT7.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-DYysUGLM.mjs";
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-wGXdGC9F.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-BKt7lsYN.mjs";
2
- import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-uWErbEZU.mjs";
1
+ import { a as NuxtDoctorManifest } from "../../primitives-BB8AakLb.mjs";
2
+ import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-B-h3EZka.mjs";
3
3
  export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
@@ -1,3 +1,3 @@
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";
1
+ import { a as NuxtDoctorManifest } from "../../primitives-BB8AakLb.mjs";
2
+ import { a as writeManifest, i as nuxtDoctorModule, n as collectNuxtDoctorExtensions, r as collectNuxtDoctorRulePacks, t as NuxtDoctorModuleOptions } from "../../module-B-h3EZka.mjs";
3
3
  export { type NuxtDoctorManifest, NuxtDoctorModuleOptions, collectNuxtDoctorExtensions, collectNuxtDoctorRulePacks, nuxtDoctorModule as default, writeManifest };
@@ -1,7 +1,7 @@
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";
1
+ import { o as RulePack, t as DoctorExtension } from "../../../primitives-BB8AakLb.mjs";
2
+ import "../../../index-CpbGR6NE.mjs";
3
+ import { t as nitroRulePack } from "../../../index-ST_3aaT7.mjs";
4
+ import "../../../index-tu1l5mxN.mjs";
5
5
  //#region src/rule-packs/nuxt/rules/nuxt/index.d.ts
6
6
  declare const nuxtRulePack: RulePack;
7
7
  //#endregion
@@ -1,3 +1,3 @@
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";
1
+ import { t as nitroRulePack } from "../../../rules-wGXdGC9F.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-B3yMC9sr.mjs";
3
3
  export { docusRulePack, nitroRulePack, nuxtBetterAuthRulePack, nuxtContentRulePack, nuxtDoctorExtensions, nuxtHubRulePack, nuxtImageRulePack, nuxtRulePack, nuxtRulePacks, nuxtScriptsRulePack, nuxtUiRulePack, vueUseRulePack };
@@ -0,0 +1,2 @@
1
+ import { a as noRuntimeTypeof, c as noChainedTypeAssertions, i as noUnknownTypeAliases, l as noCallerChosenResultType, n as requireSafetyCommentForTypeAssertion, o as noObjectParameters, r as noUnvalidatedDeserialization, s as noConditionalEmptyObjectSpread, t as typescriptRulePack } from "../../index-BZSYm1ow.mjs";
2
+ export { noCallerChosenResultType, noChainedTypeAssertions, noConditionalEmptyObjectSpread, noObjectParameters, noRuntimeTypeof, noUnknownTypeAliases, noUnvalidatedDeserialization, requireSafetyCommentForTypeAssertion, typescriptRulePack };
@@ -0,0 +1,3 @@
1
+ import { a as noRuntimeTypeof, c as noChainedTypeAssertions, i as noUnknownTypeAliases, l as noCallerChosenResultType, n as requireSafetyCommentForTypeAssertion, o as noObjectParameters, r as noUnvalidatedDeserialization, s as noConditionalEmptyObjectSpread, t as typescriptRulePack } from "../../rules-C5pNbGfH.mjs";
2
+ import "../../typescript-BzDAG0C4.mjs";
3
+ export { noCallerChosenResultType, noChainedTypeAssertions, noConditionalEmptyObjectSpread, noObjectParameters, noRuntimeTypeof, noUnknownTypeAliases, noUnvalidatedDeserialization, requireSafetyCommentForTypeAssertion, typescriptRulePack };
@@ -0,0 +1,2 @@
1
+ import { a as noRuntimeTypeof, c as noChainedTypeAssertions, i as noUnknownTypeAliases, l as noCallerChosenResultType, n as requireSafetyCommentForTypeAssertion, o as noObjectParameters, r as noUnvalidatedDeserialization, s as noConditionalEmptyObjectSpread, t as typescriptRulePack } from "../../../index-BZSYm1ow.mjs";
2
+ export { typescriptRulePack as default, noCallerChosenResultType, noChainedTypeAssertions, noConditionalEmptyObjectSpread, noObjectParameters, noRuntimeTypeof, noUnknownTypeAliases, noUnvalidatedDeserialization, requireSafetyCommentForTypeAssertion };
@@ -0,0 +1,2 @@
1
+ import { a as noRuntimeTypeof, c as noChainedTypeAssertions, i as noUnknownTypeAliases, l as noCallerChosenResultType, n as requireSafetyCommentForTypeAssertion, o as noObjectParameters, r as noUnvalidatedDeserialization, s as noConditionalEmptyObjectSpread, t as typescriptRulePack } from "../../../rules-C5pNbGfH.mjs";
2
+ export { typescriptRulePack as default, noCallerChosenResultType, noChainedTypeAssertions, noConditionalEmptyObjectSpread, noObjectParameters, noRuntimeTypeof, noUnknownTypeAliases, noUnvalidatedDeserialization, requireSafetyCommentForTypeAssertion };
@@ -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-CuZnkOun.mjs";
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-CC_PA_16.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-BFAxpIuo.mjs";
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-DZdYc6nv.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-CuZnkOun.mjs";
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-CC_PA_16.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-BFAxpIuo.mjs";
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-DZdYc6nv.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-CKaNAD2c.mjs";
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-BW08SCmi.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 };
@@ -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-Dfp82SAy.mjs";
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-Coo8Oc8h.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 };