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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user