[{"data":1,"prerenderedAt":567,"buildId":568},["ShallowReactive",2],{"-cli-workspaces":3,"-cli-workspaces-surround":464,"navigation_docs":475},{"id":4,"title":5,"body":6,"description":454,"extension":455,"links":456,"meta":457,"navigation":459,"path":460,"seo":461,"stem":462,"__hash__":463},"docs\u002F1.cli\u002F5.workspaces.md","Workspaces",{"type":7,"value":8,"toc":450},"minimark",[9,26,44,55,66,71,74,116,127,158,174,178,184,277,434,443,446],[10,11,12,13,17,18,21,22,25],"p",{},"In a workspace declared by ",[14,15,16],"code",{},"pnpm-workspace.yaml"," or the ",[14,19,20],{},"workspaces"," field, Doctor reads every workspace package's ",[14,23,24],{},"package.json",". Each package activates Rule Packs from its own dependencies, and a Rule Pack runs its file Rules on the files of the packages that activate it, the root included.",[10,27,28,29,32,33,35,36,39,40,43],{},"If the root depends on Nitro and ",[14,30,31],{},"packages\u002Fapp"," depends on Vue, the Vue Rules check ",[14,34,31],{}," only, and a ",[14,37,38],{},"nitro"," devDependency at the root checks the root's own files only. ",[14,41,42],{},"--framework"," applies only that framework's Rule Packs, to the whole workspace.",[10,45,46,47,50,51,54],{},"A Rule that declares ",[14,48,49],{},"meta.activationScope: \"workspace\"",", such as ",[14,52,53],{},"nitro\u002Fconfig\u002Frequire-absolute-generated-paths",", checks every workspace package once its Rule Pack activates anywhere, because the integration code it checks lives outside the packages that run the framework.",[10,56,57,58,61,62,65],{},"The JSON and agent reports list each package under ",[14,59,60],{},"workspacePackages"," with its framework and activated Rule Packs. The top-level ",[14,63,64],{},"framework"," is the workspace root's own.",[67,68,70],"h2",{"id":69},"nuxt-packages","Nuxt packages",[10,72,73],{},"A workspace package is a Nuxt app when it:",[75,76,77,89,99],"ul",{},[78,79,80,81,84,85,88],"li",{},"has a ",[14,82,83],{},"nuxt.config"," or a ",[14,86,87],{},".nuxt\u002Fdoctor.manifest.json",";",[78,90,91,92,95,96,88],{},"lists ",[14,93,94],{},"nuxt"," in ",[14,97,98],{},"dependencies",[78,100,101,102,95,104,107,108,111,112,115],{},"or has ",[14,103,94],{},[14,105,106],{},"devDependencies"," with an ",[14,109,110],{},"app.vue"," or ",[14,113,114],{},"pages\u002F"," entry.",[10,117,118,119,122,123,126],{},"A Nuxt module package, whose main entry builds from a ",[14,120,121],{},"src\u002F"," file that default-exports ",[14,124,125],{},"defineNuxtModule()",", counts as Nuxt too, so the module-authoring Rules run on it.",[10,128,129,130,133,134,137,138,141,142,145,146,149,150,153,154,157],{},"A package that depends on ",[14,131,132],{},"@nuxt\u002Fkit"," or exports ",[14,135,136],{},".\u002Fnuxt"," without being an app ships a Nuxt module. It keeps its own framework, is marked ",[14,139,140],{},"nuxtIntegration: true",", and activates the Vue, Nitro, and Nuxt Rule Packs for the code it ships into Nuxt apps. Nuxt routing Rules such as ",[14,143,144],{},"nuxt\u002Frouting\u002Fprefer-nuxt-useroute"," check Nuxt app files and a Nuxt module's ",[14,147,148],{},"runtime\u002F"," directory, and skip any package that creates its own router with ",[14,151,152],{},"createRouter"," from ",[14,155,156],{},"vue-router",".",[10,159,160,161,163,164,166,167,170,171,157],{},"Each Nuxt package keeps its own Nuxt Project Inventory: its ",[14,162,83],{},", ",[14,165,87],{},", server directories, and runtime versions. Nuxt Rules read the inventory of the package that owns the file, so a workspace with several Nuxt apps runs as one Doctor Run. Doctor options set through the ",[14,168,169],{},"vite-doctor\u002Fnuxt"," module of a nested Nuxt app apply only when Doctor runs from that app; a workspace run lists them under ",[14,172,173],{},"evidenceGaps",[67,175,177],{"id":176},"workspace-analyses","Workspace analyses",[10,179,180,183],{},[14,181,182],{},"--analyses"," requests graph, dead-code, duplication, or health Diagnostics. They use the source inventory and the project entry points Doctor finds. Pick one or combine them with commas:",[185,186,191],"pre",{"className":187,"code":188,"language":189,"meta":190,"style":190},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm vite-doctor . --analyses graph\npnpm vite-doctor . --analyses dead-code\npnpm vite-doctor . --analyses dupes\npnpm vite-doctor . --analyses health\npnpm vite-doctor . --analyses graph,dead-code,dupes,health --format json\n","bash","",[14,192,193,215,229,243,257],{"__ignoreMap":190},[194,195,198,202,206,209,212],"span",{"class":196,"line":197},"line",1,[194,199,201],{"class":200},"sBMFI","pnpm",[194,203,205],{"class":204},"sfazB"," vite-doctor",[194,207,208],{"class":204}," .",[194,210,211],{"class":204}," --analyses",[194,213,214],{"class":204}," graph\n",[194,216,218,220,222,224,226],{"class":196,"line":217},2,[194,219,201],{"class":200},[194,221,205],{"class":204},[194,223,208],{"class":204},[194,225,211],{"class":204},[194,227,228],{"class":204}," dead-code\n",[194,230,232,234,236,238,240],{"class":196,"line":231},3,[194,233,201],{"class":200},[194,235,205],{"class":204},[194,237,208],{"class":204},[194,239,211],{"class":204},[194,241,242],{"class":204}," dupes\n",[194,244,246,248,250,252,254],{"class":196,"line":245},4,[194,247,201],{"class":200},[194,249,205],{"class":204},[194,251,208],{"class":204},[194,253,211],{"class":204},[194,255,256],{"class":204}," health\n",[194,258,260,262,264,266,268,271,274],{"class":196,"line":259},5,[194,261,201],{"class":200},[194,263,205],{"class":204},[194,265,208],{"class":204},[194,267,211],{"class":204},[194,269,270],{"class":204}," graph,dead-code,dupes,health",[194,272,273],{"class":204}," --format",[194,275,276],{"class":204}," json\n",[278,279,280,293],"table",{},[281,282,283],"thead",{},[284,285,286,290],"tr",{},[287,288,289],"th",{},"Analysis",[287,291,292],{},"Diagnostic Reference",[294,295,296,311,323,336,348,360,372,384,396,409,422],"tbody",{},[284,297,298,304],{},[299,300,301],"td",{},[14,302,303],{},"graph",[299,305,306],{},[307,308,310],"a",{"href":309},"\u002Fdiagnostics\u002FDOC0001","DOC0001: circular dependencies",[284,312,313,317],{},[299,314,315],{},[14,316,303],{},[299,318,319],{},[307,320,322],{"href":321},"\u002Fdiagnostics\u002FDOC0002","DOC0002: repeated export names",[284,324,325,330],{},[299,326,327],{},[14,328,329],{},"dead-code",[299,331,332],{},[307,333,335],{"href":334},"\u002Fdiagnostics\u002FDOC0003","DOC0003: undeclared dependencies",[284,337,338,342],{},[299,339,340],{},[14,341,329],{},[299,343,344],{},[307,345,347],{"href":346},"\u002Fdiagnostics\u002FDOC0004","DOC0004: unresolved source imports",[284,349,350,354],{},[299,351,352],{},[14,353,329],{},[299,355,356],{},[307,357,359],{"href":358},"\u002Fdiagnostics\u002FDOC0005","DOC0005: apparently unused dependencies",[284,361,362,366],{},[299,363,364],{},[14,365,329],{},[299,367,368],{},[307,369,371],{"href":370},"\u002Fdiagnostics\u002FDOC0006","DOC0006: unreachable value exports",[284,373,374,378],{},[299,375,376],{},[14,377,329],{},[299,379,380],{},[307,381,383],{"href":382},"\u002Fdiagnostics\u002FDOC0007","DOC0007: unreachable source files",[284,385,386,390],{},[299,387,388],{},[14,389,329],{},[299,391,392],{},[307,393,395],{"href":394},"\u002Fdiagnostics\u002FDOC0008","DOC0008: unreachable type exports",[284,397,398,403],{},[299,399,400],{},[14,401,402],{},"dupes",[299,404,405],{},[307,406,408],{"href":407},"\u002Fdiagnostics\u002FDOC0009","DOC0009: repeated token sequences",[284,410,411,416],{},[299,412,413],{},[14,414,415],{},"health",[299,417,418],{},[307,419,421],{"href":420},"\u002Fdiagnostics\u002FDOC0010","DOC0010: file-level branch complexity",[284,423,424,428],{},[299,425,426],{},[14,427,415],{},[299,429,430],{},[307,431,433],{"href":432},"\u002Fdiagnostics\u002FDOC0011","DOC0011: many static imports",[10,435,436,438,439,442],{},[14,437,182],{}," alone runs only the selected analyses. Add ",[14,440,441],{},"--rules \u003Crule-id>"," to also run a Rule from a Rule Pack.",[10,444,445],{},"A reachability Diagnostic is not proof that code is dead. Check runtime loading, public package consumers, and host conventions before you remove anything. Each reference page lists its evidence and limits.",[447,448,449],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":190,"searchDepth":217,"depth":217,"links":451},[452,453],{"id":69,"depth":217,"text":70},{"id":176,"depth":217,"text":177},"How Doctor activates Rule Packs per workspace package, and the workspace analyses.","md",null,{"icon":458},"i-lucide-folder-tree",true,"\u002Fcli\u002Fworkspaces",{"title":5,"description":454},"1.cli\u002F5.workspaces","ewhu5u8bhuL5ZPEUzKDCdJoRbV3By9OH6s59Jk8eETo",[465,470],{"title":466,"path":467,"stem":468,"description":469,"children":-1},"CI and changed files","\u002Fcli\u002Fci","1.cli\u002F4.ci","Run Doctor in CI, report only changed lines, and record existing findings in a baseline.",{"title":471,"path":472,"stem":473,"description":474,"children":-1},"Cache and speed","\u002Fcli\u002Fcache","1.cli\u002F6.cache","The analysis cache, worker threads, the long-lived Doctor process, and watch mode.",[476,495,499,503,507,511,515,527,531,555,559,563],{"title":477,"path":478,"stem":479,"children":480,"icon":494},"CLI","\u002Fcli","1.cli\u002F1.index",[481,483,487,491,492,493],{"title":482,"path":478,"stem":479},"Run Doctor",{"title":484,"path":485,"stem":486},"Reports","\u002Fcli\u002Freports","1.cli\u002F2.reports",{"title":488,"path":489,"stem":490},"Configuration","\u002Fcli\u002Fconfiguration","1.cli\u002F3.configuration",{"title":466,"path":467,"stem":468},{"title":5,"path":460,"stem":462},{"title":471,"path":472,"stem":473},"i-lucide-terminal",{"title":496,"path":497,"stem":498},"Nuxt","\u002Fnuxt","2.nuxt",{"title":500,"path":501,"stem":502},"Vue","\u002Fvue","3.vue",{"title":504,"path":505,"stem":506},"Vite","\u002Fvite","4.vite",{"title":508,"path":509,"stem":510},"Nitro","\u002Fnitro","5.nitro",{"title":512,"path":513,"stem":514},"TypeScript","\u002Ftypescript","6.typescript",{"title":516,"path":517,"stem":518,"children":519,"icon":526},"Design system","\u002Fdesign-system","7.design-system\u002F1.index",[520,522],{"title":521,"path":517,"stem":518},"Overview",{"title":523,"path":524,"stem":525},"Classes and styles","\u002Fdesign-system\u002Fclasses","7.design-system\u002F2.classes","i-lucide-swatch-book",{"title":528,"path":529,"stem":530},"Package","\u002Fpackage","8.package",{"title":532,"path":533,"stem":534,"children":535,"icon":554},"Extending Doctor","\u002Fextending","9.extending\u002F1.index",[536,538,542,546,550],{"title":537,"path":533,"stem":534},"Write an extension",{"title":539,"path":540,"stem":541},"Visitors","\u002Fextending\u002Fvisitors","9.extending\u002F2.visitors",{"title":543,"path":544,"stem":545},"Ship with a library","\u002Fextending\u002Fshipping","9.extending\u002F3.shipping",{"title":547,"path":548,"stem":549},"Test a Rule","\u002Fextending\u002Ftesting","9.extending\u002F4.testing",{"title":551,"path":552,"stem":553},"Rule inputs","\u002Fextending\u002Frule-inputs","9.extending\u002F5.rule-inputs","i-lucide-puzzle",{"title":556,"path":557,"stem":558},"H3","\u002Fh3","9.h3",{"title":560,"path":561,"stem":562},"MCP","\u002Fmodel-context-protocol","9.model-context-protocol",{"title":564,"path":565,"stem":566},"Pinia","\u002Fpinia","9.pinia",1796492442663,"1c82e0cf-90da-4346-b049-6ae71736a6b9"]