This commit is contained in:
Louis Lam 2023-11-12 16:39:21 +08:00
parent dd58a9cbc4
commit 200ba0ca07

View File

@ -17,14 +17,8 @@ if (! exists) {
// Process package.json
pkg.version = newVersion;
fs.writeFileSync("package.json", JSON.stringify(pkg, null, 4) + "\n");
// Also update pnpm-lock.yaml
const npm = /^win/.test(process.platform) ? "pnpm.cmd" : "pnpm";
childProcess.spawnSync(npm, [ "install" ]);
commit(newVersion);
tag(newVersion);
} else {
console.log("version exists");
}