|
@ -23,7 +23,7 @@ if (!newVersion) { |
|
|
|
|
|
|
|
|
packageJson.version = newVersion |
|
|
packageJson.version = newVersion |
|
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2)) |
|
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2)) |
|
|
console.log(`deviceType updated to: ${newVersion}`) |
|
|
|
|
|
|
|
|
console.log(`version updated to: ${newVersion}`) |
|
|
|
|
|
|
|
|
// 新增:自动提交 package.json 到远程仓库
|
|
|
// 新增:自动提交 package.json 到远程仓库
|
|
|
try { |
|
|
try { |
|
|