rajalokan_obsidian-just-not.../version-bump.mjs
Alok Kumar 80dd7932e9 Initial Release: Just Note 0.1.0
- Open Obsidian notes in focused independent windows.
- Support macOS Shortcuts through custom Obsidian URIs.
- Add persistent per-note colors.
- Add command palette and context menu actions.
- Add release automation, documentation, and demo.
2026-07-21 17:45:22 +01:00

18 lines
613 B
JavaScript

import { readFileSync, writeFileSync } from "fs";
const targetVersion = process.env.npm_package_version;
if (!targetVersion) {
throw new Error("npm_package_version is required");
}
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;
manifest.version = targetVersion;
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
const versions = JSON.parse(readFileSync("versions.json", "utf8"));
if (!(targetVersion in versions)) {
versions[targetVersion] = minAppVersion;
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
}