fix(init): setup vite/client types on init (#3327)

Note that this also requires
https://github.com/denoland/deno/issues/30560 to work. That will be
released in either Deno `2.4.6` or `2.5.0` depending on which one comes
first.

Fixes https://github.com/denoland/fresh/issues/3319
This commit is contained in:
Marvin Hagemeister
2025-09-03 12:02:52 +02:00
committed by GitHub
parent 08ef05fc1d
commit fd2ebc63c5
5 changed files with 113 additions and 20 deletions
+2 -1
View File
@@ -577,10 +577,11 @@ if (Deno.args.includes("build")) {
"noscript",
"template",
],
},
} as Record<string, unknown>,
};
if (useVite) {
denoJson.compilerOptions.types = ["vite/client"];
denoJson.tasks.dev = "vite";
denoJson.tasks.build = "vite build";