更新 package.json 版本至 1.0.0,简化描述并优化版本提升脚本以直接从环境变量获取目标版本

This commit is contained in:
wood chen 2025-03-21 20:22:11 +08:00
parent cb66c30176
commit e62397e73e
2 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,7 @@
{ {
"name": "lskypro-uploader", "name": "lskypro-uploader",
"version": "1.0.1", "version": "1.0.0",
"type": "module", "description": "Upload images to LskyPro",
"description": "Auto upload images from clipboard to LskyPro",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"dev": "node esbuild.config.mjs", "dev": "node esbuild.config.mjs",

View File

@ -1,7 +1,6 @@
import { readFileSync, writeFileSync } from "fs"; 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 // read minAppVersion from manifest.json and bump version to target version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8")); let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));