polygonhunter_slashosaurus/version-bump.mjs
polygonhunter 1765c958e8 Slashosaurus 0.1.0 — Notion-style slash menu with live block previews
- EditorSuggest-based trigger (line start / after whitespace, configurable
  character), fuzzy filtering over names and aliases
- Live preview tiles: all 13 callout types in theme colors, headings in
  their sizes, lists, table grid, code/math/mermaid chips
- Smart insert with {cursor} sentinel, selection wrapping (prefix, fence,
  inline), two-stage code-block language picker, Shift+Enter for foldable
  callouts, footnotes with auto-numbered definitions, user snippets
- Glass panel with gliding selection pill, mobile + reduced-motion aware
- Pure, vitest-covered core (46 tests); only Obsidian APIs ≤ 1.12
2026-07-17 09:44:12 +00:00

14 lines
666 B
JavaScript

import { readFileSync, writeFileSync } from "fs";
const targetVersion = process.env.npm_package_version;
// read minAppVersion from manifest.json and bump version to target version
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;
manifest.version = targetVersion;
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t") + "\n");
// update versions.json with target version and minAppVersion from manifest.json
const versions = JSON.parse(readFileSync("versions.json", "utf8"));
versions[targetVersion] = minAppVersion;
writeFileSync("versions.json", JSON.stringify(versions, null, "\t") + "\n");