mirror of
https://github.com/rajalokan/obsidian-just-note-plugin.git
synced 2026-07-22 08:37:50 +00:00
- 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.
18 lines
613 B
JavaScript
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"));
|
|
}
|