punkyard_obsidian-lindar/version-bump.mjs
nmn 1d997c0a3d feat: Phase 1+2 — scaffold and base yearly calendar view
- Project scaffold: manifest, package.json, tsconfig, esbuild config
- Settings model with eventsFolder, defaultColor, motto
- Shared types (LindarEvent, LindarSettings)
- Date utilities (getDaysInMonth, getFirstDayOfWeek, week numbers, etc.)
- Yearly horizontal calendar grid (12 month rows, weekday headers)
- Sticky month labels, today highlight, weekend tinting
- Week number display, horizontal scrolling, 96vh layout
- Year navigation (prev/next buttons + year picker dropdown)
- Customizable motto display
- Light/dark theme support via Obsidian CSS variables
2026-04-21 13:26:49 +02:00

18 lines
637 B
JavaScript

import { readFileSync, writeFileSync } from "fs";
const targetVersion = process.env.npm_package_version;
if (!targetVersion) {
throw new Error("npm_package_version is not available.");
}
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 (!Object.keys(versions).includes(targetVersion)) {
versions[targetVersion] = minAppVersion;
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
}