[{"data":1,"prerenderedAt":831},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"decision-0015-nuxt-prepare-wiring":116},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",{"id":117,"title":118,"body":119,"description":811,"extension":819,"kind":820,"meta":821,"navigation":826,"path":827,"seo":828,"stem":829,"url":820,"verdict":820,"__hash__":830},"docs\u002Fdocs\u002Fdecisions\u002F0015-nuxt-prepare-wiring.md","🧭 .nuxt is repaired where it's used, not wired target by target",{"type":120,"value":121,"toc":810},"minimark",[122,132,137,189,208,212,222,244,301,307,339,364,377,405,417,461,488,532,563,567,706,710,723,753,759,771,775,799],[123,124,126,127,131],"h1",{"id":125},"nuxt-is-repaired-where-its-used-not-wired-target-by-target","🧭 ",[128,129,130],"code",{},".nuxt"," is repaired where it's used, not wired target by target",[133,134,136],"h2",{"id":135},"context","Context",[138,139,140,141,144,145,147,148,151,152,154,155,157,158,161,162,169,170,173,174,176,177,180,181,184,185,188],"p",{},"#117 fixed a CI failure: ",[128,142,143],{},"test:coverage"," ran in both Nuxt apps without ",[128,146,130],{},", so Vite's oxc\ntransform threw ",[128,149,150],{},"Tsconfig not found: .nuxt\u002Ftsconfig.app.json"," in ",[128,153,41],{},", while in\n",[128,156,36],{}," the same missing file first surfaced as a wave of ",[128,159,160],{},"@vitest\u002Fcoverage-v8"," \"Failed to\nparse … Excluding it from coverage\" noise before failing on the identical error further down. The\nfix was one line in ",[163,164,166],"a",{"href":165},"repo:nx.json",[128,167,168],{},"nx.json"," — ",[128,171,172],{},"\"dependsOn\": [\"nuxt-prepare\"]"," on the\n",[128,175,143],{}," target default, which ",[128,178,179],{},"lint",", ",[128,182,183],{},"typecheck"," and ",[128,186,187],{},"test"," already carried.",[138,190,191,192,195,196,202,203,207],{},"The question is how to stop the next one, since the same omission is available to every target\nadded and every Nuxt app added. Two candidates were proposed: an invariant check in the shape this\nrepo already uses for cross-file rules, or the local ",[128,193,194],{},"createNodesV2"," plugin\n",[163,197,199],{"href":198},"repo:CLAUDE%2Emd",[128,200,201],{},"CLAUDE.md"," earmarks for \"if a ",[204,205,206],"strong",{},"third"," one lands\".",[133,209,211],{"id":210},"result","Result",[138,213,214,217,218,221],{},[204,215,216],{},"Neither proposal is sized to the problem, because the target list is not enumerable by hand and\nthe task graph is not where most of the breakage is reachable from."," Every claim below was measured\nby moving ",[128,219,220],{},"apps\u002Fdeveloper-portal\u002F.nuxt"," aside and running the target cold.",[138,223,224,227,228,231,232,235,236,239,240,243],{},[204,225,226],{},"1. One cause, three error messages."," Both apps' ",[128,229,230],{},"tsconfig.json"," is ",[128,233,234],{},"files: []"," plus ",[128,237,238],{},"references","\ninto ",[128,241,242],{},".nuxt\u002F",", so anything that resolves it fails when the directory is absent — the tool decides\nonly what the error looks like:",[245,246,247,260],"table",{},[248,249,250],"thead",{},[251,252,253,257],"tr",{},[254,255,256],"th",{},"Target",[254,258,259],{},"Cold failure",[261,262,263,288],"tbody",{},[251,264,265,278],{},[266,267,268,180,270,180,272,180,275],"td",{},[128,269,187],{},[128,271,143],{},[128,273,274],{},"test:dev",[128,276,277],{},"test-ci--\u003Cspec>",[266,279,280,283,284,287],{},[128,281,282],{},"[TSCONFIG_ERROR] Failed to load tsconfig '.nuxt\u002Ftsconfig.app.json'"," from ",[128,285,286],{},"vite:oxc",", at transform time",[251,289,290,295],{},[266,291,292],{},[128,293,294],{},"eslint:lint",[266,296,297,300],{},[128,298,299],{},"app.vue was not found by the project service",", once per file, after 11.4s",[138,302,303,304,306],{},"So this is not a vitest problem with a vitest fix. Any future target that opens the app's\n",[128,305,230],{}," joins the list.",[138,308,309,312,313,316,317,319,320,323,324,327,328,184,331,334,335,338],{},[204,310,311],{},"2. The targets can't be listed, because Nx mints them."," ",[128,314,315],{},"@nx\u002Fvitest"," atomizes specs into one\ntarget per file — eight in ",[128,318,36],{}," today, ",[128,321,322],{},"test-ci--shared\u002Fwiki.spec.ts"," and siblings — named\nat graph-computation time, and each one fails cold. ",[128,325,326],{},"targetDefaults"," cannot reach them: adding both\n",[128,329,330],{},"\"test-ci\"",[128,332,333],{},"\"test-ci--*\""," applied the first and left every atomized target at\n",[128,336,337],{},"dependsOn: null",". Glob keys are not target defaults.",[138,340,341,312,344,347,348,352,353,359,360,363],{},[204,342,343],{},"3. Those eight are latent, not live.",[128,345,346],{},"nx run @joinery\u002Fdeveloper-portal:test-ci"," refuses outright —\n",[349,350,351],"em",{},"\"should only be run with Nx Cloud\""," — and Nx Cloud was rejected in\n",[163,354,356],{"href":355},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0005-nx-generators-and-ai-agent-setup",[128,357,358],{},"0005",". An edge on the aggregate would not help\nanyway: Cloud dispatches the atomized tasks directly, so a ",[128,361,362],{},"dependsOn"," on their parent never\napplies to them.",[138,365,366,372,373,376],{},[204,367,368,369,371],{},"4. One hole is live today: ",[128,370,274],{},"."," It's a ",[128,374,375],{},"package.json"," script in both apps with no target\ndefault, and it fails on 8 of 8 spec files cold. The same class as #117, unfixed, and it predates\nit.",[138,378,379,385,388,389,392,393,396,397,184,399,401,402,404],{},[204,380,381,382,384],{},"5. A ",[128,383,362],{}," naming a target the project lacks is silently dropped.",[128,386,387],{},"@joinery\u002Fcontent"," has no ",[128,390,391],{},"nuxt-prepare"," script and still shows ",[128,394,395],{},"dependsOn: [\"nuxt-prepare\"]"," on\n",[128,398,187],{},[128,400,143],{},"; nothing errors, which is why the workspace-wide defaults are safe. The\ncost is that ",[128,403,201],{},"'s manual step — a new Nuxt app \"needs the script added by hand\" — fails\nsilently rather than loudly: the wiring reads as present and does nothing.",[138,406,407,312,410,413,414,416],{},[204,408,409],{},"6. The graph only protects what runs through it.",[128,411,412],{},"pnpm exec vitest run"," inside the app\ndirectory fails identically. On a fresh clone that is the first thing a newcomer's editor or test\nrunner does, and no ",[128,415,362],{}," in any shape reaches it.",[138,418,419,426,427,430,431,434,435,438,439,442,443,446,447,450,451,457,458,460],{},[204,420,421,422,425],{},"7. Vitest can repair it itself — in ",[128,423,424],{},".mjs"," only."," A ",[128,428,429],{},"globalSetup"," that runs ",[128,432,433],{},"nuxi prepare"," when\n",[128,436,437],{},".nuxt\u002Ftsconfig.app.json"," is missing took a cold spec from failing to green, 2.8s end to end\nincluding Nx's own overhead. Written as ",[128,440,441],{},".ts"," it fails ",[204,444,445],{},"before it runs",": the setup file is itself\ntransformed by the oxc pipeline it exists to repair, and the error just moves onto it. Referenced\nas a package specifier\n(",[128,448,449],{},"@joinery\u002Fconfigs\u002Fvitest\u002FprepareNuxt",") it resolves and works, so it lives once in\n",[163,452,454],{"href":453},"\u002Fwiki\u002Fpackages\u002Fconfigs\u002Freadme",[128,455,456],{},"@joinery\u002Fconfigs"," rather than once per app — where it becomes\nthat package's first non-TypeScript export, against a ",[128,459,201],{}," that describes it as shipped as\nraw TypeScript. No build step is involved either way; it is still source.",[138,462,463,426,466,468,469,472,473,475,476,478,479,481,482,484,485,487],{},[204,464,465],{},"8. A local plugin can attach the edge but cannot find the names.",[128,467,194],{}," over\n",[128,470,471],{},"**\u002Fnuxt.config.ts"," merged ",[128,474,395],{}," onto both ",[128,477,274],{}," and an atomized\n",[128,480,277],{}," target inferred by another plugin — merging is not the obstacle. Discovering\nthose names is: it takes either re-implementing ",[128,483,315],{},"'s atomization or wrapping the\n",[128,486,194],{}," it exports, both of them a hard dependency on another package's internals.",[138,489,490,493,497,498,312,500,502,503,505,506,509,510,512,513,184,515,517,518,522,523,184,525,527,528,531],{},[204,491,492],{},"One change is adopted, and it is neither of the two proposed.",[163,494,495],{"href":453},[128,496,456],{}," ships the ",[128,499,433],{},[128,501,429],{}," as\n",[128,504,424],{},", carried by the preset every project's ",[128,507,508],{},"vitest.config.ts"," already calls. That closes findings\n1, 2, 4 and 6 at once — every Vitest target, inferred or hand-written, inside the graph or outside\nit — and it makes the four ",[128,511,395],{}," entries on ",[128,514,187],{},[128,516,143],{},"\nredundant, so they come out of ",[163,519,520],{"href":165},[128,521,168],{}," with it. ",[128,524,179],{},[128,526,183],{}," keep\ntheirs: neither is Vitest, and ",[128,529,530],{},"eslint"," is measured failing cold.",[138,533,534,537,538,541,542,545,546,549,550,553,554,556,557,559,560,562],{},[204,535,536],{},"No check is adopted."," One was built — a ",[128,539,540],{},"compareNuxtPrepare"," beside the mirrored invariants in\n",[128,543,544],{},"apps\u002Fdeveloper-portal",", asserting that a ",[128,547,548],{},"nuxt.config.ts"," project declares the script and that every\ntsconfig-reading target of one carries the edge — and it was removed. Two reasons, in order. It was\nin the wrong project: an Nx build-graph rule reaching across the workspace from inside an app, gating\na target called ",[128,551,552],{},"check-docs",", where the existing invariants at least have a dashboard that renders\nthem. And once the self-heal landed, the half of it worth having was the one assertion the graph\ncan't make — a Nuxt app with no ",[128,555,391],{}," script — for which the symptom is already a red\n",[128,558,179],{},", and the remedy 150 lines of checker for a three-word ",[128,561,375],{}," entry.",[133,564,566],{"id":565},"options-considered","Options considered",[245,568,569,579],{},[248,570,571],{},[251,572,573,576],{},[254,574,575],{},"Option",[254,577,578],{},"Why not",[261,580,581,595,615,631,641,652,671,688],{},[251,582,583,586],{},[266,584,585],{},"The invariant check (built, then removed)",[266,587,588,589,591,592,594],{},"Finding 2: over every target its only live findings are the eight atomized ones, which have no expressible fix, so the first thing it earns is a permanent allowlist entry. Narrowed to what the self-heal leaves — a project missing the script — it is 150 lines guarding a three-word ",[128,590,375],{}," entry whose absence already turns ",[128,593,179],{}," red",[251,596,597,600],{},[266,598,599],{},"A local Nx plugin injecting the edge into every target",[266,601,602,603,605,606,610,611,614],{},"Finding 8: attaching works, enumerating doesn't. Buying the inferred targets means coupling to ",[128,604,315],{},"'s internals — the failure ",[163,607,608],{"href":355},[128,609,358],{}," already recorded for ",[128,612,613],{},"nx_project_details"," against Nx 23 — to protect tasks only Nx Cloud can run",[251,616,617,625],{},[266,618,619,620,622,623],{},"A ",[128,621,333],{}," glob key in ",[128,624,326],{},[266,626,627,628,630],{},"Measured: no effect. The exact ",[128,629,330],{}," key beside it applied, so this isn't a caching artefact",[251,632,633,638],{},[266,634,635,637],{},[128,636,330],{}," with the edge, letting it cover its children",[266,639,640],{},"Finding 3: the target refuses to run without Nx Cloud, and Cloud runs the atomized tasks directly rather than through their parent",[251,642,643,649],{},[266,644,619,645,312,647],{},[128,646,441],{},[128,648,429],{},[266,650,651],{},"Finding 7: transformed by the pipeline it repairs, so it fails before its first line runs",[251,653,654,657],{},[266,655,656],{},"Point vitest at a tsconfig that always exists",[266,658,659,660,231,663,666,667,670],{},"Vite 8's ",[128,661,662],{},"OxcOptions",[128,664,665],{},"Omit\u003CTransformOptions, … | \"tsconfig\" | …>"," — the path isn't configurable, and ",[128,668,669],{},"oxc: false"," would disable the TypeScript transform altogether",[251,672,673,681],{},[266,674,619,675,678,679],{},[128,676,677],{},"postinstall"," running ",[128,680,433],{},[266,682,683,684,687],{},"Lifecycle scripts are banned here and both workflows install with ",[128,685,686],{},"--ignore-scripts","; it would work locally and do nothing in CI",[251,689,690,695],{},[266,691,692,693],{},"Commit ",[128,694,130],{},[266,696,697,698,701,702,705],{},"A generated tree of hundreds of files, regenerated by every ",[128,699,700],{},"nuxt"," command, in a repo where ",[128,703,704],{},"nx release"," already owns what's derived",[133,707,709],{"id":708},"consequences","Consequences",[138,711,712,714,715,717,718,312,720,722],{},[128,713,201],{},"'s ",[128,716,130],{}," paragraph goes stale twice over when this lands: it names four targets that\n",[128,719,362],{},[128,721,391],{},", and it earmarks the plugin this report retires. Both are part of the\nwork, not follow-up — that paragraph is the repo's own \"two places that must agree\" class.",[138,724,725,726,728,729,731,732,734,735,737,738,740,741,743,744,746,747,749,750,752],{},"The self-heal trades a graph edge for a runtime check, and two costs come with that. A Vitest run\nthat finds no ",[128,727,130],{}," pays ",[128,730,433],{}," itself — 1.8s in ",[128,733,36],{}," — instead of reusing the\ncached ",[128,736,391],{}," output. And because ",[128,739,187],{}," no longer waits on that task, a run that includes\n",[128,742,179],{}," can have Nx preparing for ",[128,745,179],{}," while Vitest prepares for itself, two ",[128,748,433],{},"\nprocesses writing one directory. Neither has bitten; the second is the one to watch, and re-wiring\n",[128,751,187],{}," alone undoes it.",[138,754,755,756,758],{},"The ",[128,757,424],{}," extension is load-bearing and silent — the one fact about this that can't be\nreconstructed from reading it, and therefore the one comment it gets.",[138,760,761,762,764,765,767,768,770],{},"Revisit if Nx Cloud is adopted, which turns finding 3's eight latent targets live and leaves the\nself-heal as the only thing covering them; or if a tool outside Vitest and outside Nx starts\nresolving the app ",[128,763,230],{},", which is the case nothing here reaches. Finding 5 stays open by\nchoice: a Nuxt app added without a ",[128,766,391],{}," script still fails ",[128,769,179],{}," with a parse error on\nevery file and nothing names the cause.",[133,772,774],{"id":773},"confirmation","Confirmation",[138,776,777,778,781,782,785,786,788,789,791,792,794,795,798],{},"Delete both ",[128,779,780],{},"apps\u002F*\u002F.nuxt"," and run ",[128,783,784],{},"pnpm exec nx run-many -t test test:coverage",", then\n",[128,787,412],{}," from inside either app directory. All of it passes with no ",[128,790,391],{},"\nedge anywhere near a Vitest target, and the second is the one no task-graph wiring can make pass.\nThe check that would fail if the decision stopped holding is the same one that proved the bug:\n",[128,793,130],{}," deleted, ",[128,796,797],{},"nx run \u003Capp>:test:coverage"," green.",[138,800,801,804,805,184,807,809],{},[128,802,803],{},"grep nuxt-prepare nx.json"," is the other half — ",[128,806,179],{},[128,808,183],{}," only. A third entry appearing\nthere means a Vitest target was re-wired by hand, which is this decision being reversed rather than\napplied.",{"title":811,"searchDepth":812,"depth":812,"links":813},"",2,[814,815,816,817,818],{"id":135,"depth":812,"text":136},{"id":210,"depth":812,"text":211},{"id":565,"depth":812,"text":566},{"id":708,"depth":812,"text":709},{"id":773,"depth":812,"text":774},"md",null,{"issue":822,"status":823,"decision":824,"supersededBy":825},120,"implemented","superseded","0024-nuxt-prepare-test-edge.md",true,"\u002Fdocs\u002Fdecisions\u002F0015-nuxt-prepare-wiring",{"title":118,"description":811},"docs\u002Fdecisions\u002F0015-nuxt-prepare-wiring","8LHr12fpwpRhkeB2pDZlNnNh8dpjVgvT609F7d1_Eic",1795478397658]