polygonhunter_searchosaurus/version-bump.mjs
polygonhunter e3cc05cef2 M1: scaffold, search index, and basic modal
Project scaffold following the Scalosaurus conventions (esbuild, strict
tsconfig, vitest, test-vault with hot-reload, dispatch release workflow).

Core (pure, unit-tested): MiniSearch engine with title-dominant field
boosts, diacritic/ß folding shared across index/query/tier layers, and
extension→kind classification. Obsidian side: chunked vault indexing
with mtime diff against an IndexedDB startup cache and incremental
updates from metadataCache/vault events. Basic SuggestModal lists
boosted results; deterministic title tiers land with the ranking
milestone.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 07:53:35 +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");