This commit is contained in:
wood chen 2025-03-21 20:20:01 +08:00
parent dd06cffc91
commit bd2a8ba0ba
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json && git tag $(node -p \"require('./package.json').version\")"
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [
"obsidian.md",

View File

@ -2,6 +2,9 @@ import { readFileSync, writeFileSync } from "fs";
const targetVersion = process.env.npm_package_version;
const packageJson = require('./package.json');
const version = packageJson.version;
// read minAppVersion from manifest.json and bump version to target version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;