mirror of
https://github.com/woodchen-ink/obsidian-lskypro-uploader.git
synced 2025-07-18 05:42:07 +08:00
优化版本提升脚本,直接从 package.json 中获取目标版本
This commit is contained in:
parent
bd2a8ba0ba
commit
cb66c30176
@ -1,9 +1,7 @@
|
||||
import { readFileSync, writeFileSync } from "fs";
|
||||
import packageJson from './package.json';
|
||||
|
||||
const targetVersion = process.env.npm_package_version;
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
const version = packageJson.version;
|
||||
const targetVersion = packageJson.version;
|
||||
|
||||
// read minAppVersion from manifest.json and bump version to target version
|
||||
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user