mirror of
https://github.com/woodchen-ink/obsidian-lskypro-uploader.git
synced 2025-07-17 21:32:07 +08:00
更新 package.json 版本至 1.0.0,简化描述并优化版本提升脚本以直接从环境变量获取目标版本
This commit is contained in:
parent
cb66c30176
commit
e62397e73e
@ -1,8 +1,7 @@
|
||||
{
|
||||
"name": "lskypro-uploader",
|
||||
"version": "1.0.1",
|
||||
"type": "module",
|
||||
"description": "Auto upload images from clipboard to LskyPro",
|
||||
"version": "1.0.0",
|
||||
"description": "Upload images to LskyPro",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "node esbuild.config.mjs",
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { readFileSync, writeFileSync } from "fs";
|
||||
import packageJson from './package.json';
|
||||
|
||||
const targetVersion = packageJson.version;
|
||||
const targetVersion = process.env.npm_package_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