feat(init): mark init as stable to make init command shorter (#3274)

This commit is contained in:
Marvin Hagemeister
2025-08-29 17:50:03 +02:00
committed by GitHub
parent 4fe0199c9f
commit 05203000da
3 changed files with 150 additions and 8 deletions
-7
View File
@@ -54,10 +54,6 @@ if (version === "major") {
}
}
const initJsonPath = path.join(ROOT_DIR, "packages", "init", "deno.json");
const initJson = JSON.parse(await Deno.readTextFile(initJsonPath));
const currentInit = semver.parse(initJson.version);
const updateJsonPath = path.join(ROOT_DIR, "packages", "update", "deno.json");
const updateJson = JSON.parse(await Deno.readTextFile(updateJsonPath));
const currentUpdate = semver.parse(updateJson.version);
@@ -77,8 +73,6 @@ function formatUpgradeMsg(
// deno-lint-ignore no-console
console.log(formatUpgradeMsg(denoJson.name!, current, next));
// deno-lint-ignore no-console
console.log(formatUpgradeMsg(initJson.name!, currentInit, next));
// deno-lint-ignore no-console
console.log(formatUpgradeMsg(updateJson.name!, currentUpdate, next));
if (!confirm("Proceed with update?")) {
@@ -107,7 +101,6 @@ function replaceJsonVersion(version: string) {
content.replace(/"version":\s"[^"]+"/, `"version": "${version}"`);
}
await replaceInFile(denoJsonPath, replaceJsonVersion(nextVersion));
await replaceInFile(initJsonPath, replaceJsonVersion(nextVersion));
await replaceInFile(updateJsonPath, replaceJsonVersion(nextVersion));
async function getNpmVersion(name: string) {