mirror of
https://github.com/ksawl/obsidian-alchemist.git
synced 2026-07-22 06:49:47 +00:00
- fix(textbundle): restore link symmetry (assets folder) and fix redundant aliases - fix(textbundle): improve Cyrillic handling in links and assets - feat(audio): add video-to-audio extraction (mp4, mov, mkv, avi) - feat(audio): add recursive folder conversion and multiple selection support - feat(audio): implement smart metadata mapping (H1 heading and creation_date) - chore(version): add version-bump.mjs automation and sync configs - docs: update README and add CHANGELOG.md
16 lines
623 B
JavaScript
16 lines
623 B
JavaScript
import { readFileSync, writeFileSync } from 'fs';
|
|
|
|
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
|
|
const { version, minAppVersion } = manifest;
|
|
|
|
// 1. Update package.json
|
|
const pkg = JSON.parse(readFileSync('package.json', 'utf8'));
|
|
pkg.version = version;
|
|
writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
|
|
|
|
// 2. Update versions.json
|
|
const versions = JSON.parse(readFileSync('versions.json', 'utf8'));
|
|
versions[version] = minAppVersion;
|
|
writeFileSync('versions.json', JSON.stringify(versions, null, 2) + '\n');
|
|
|
|
console.log(`Version bumped to ${version} in all configuration files.`);
|