Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk committed Mar 23, 2024
1 parent 8840fbe commit d9d4d4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions version-bump.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { readFileSync, writeFileSync } from "fs";
import { execSync } from "node:child_process";
import { exit } from "process";
const packageJSON = JSON.parse(readFileSync("package.json", "utf8"));

const targetVersion = process.env.npm_package_version;
const targetVersion = packageJSON.version;
const dryRun = !process.argv[2] || process.argv[2] !== "--go";

try {
Expand All @@ -25,8 +26,8 @@ try {
}

// load manifest and check beta version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
let obsidian = JSON.parse(readFileSync("package.json", "utf8")).obsidian;
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const obsidian = packageJSON.obsidian;
const isBeta = targetVersion.endsWith("beta");

console.log(`new version : ${targetVersion}`);
Expand Down

0 comments on commit d9d4d4c

Please sign in to comment.