mirror of
https://github.com/polygonhunter/slashosaurus.git
synced 2026-07-22 08:32:14 +00:00
- 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
14 lines
666 B
JavaScript
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");
|