Skip to content

Commit 59b6137

Browse files
committed
fix: optimize scripts
1 parent 1a64798 commit 59b6137

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

HISTORY.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.0.0 (2025-07-05)
2+
3+
- 1a64798 chore: add npm version badge
4+
- 30e2b00 doc: optimize README
5+
- 8365733 fix: remove macos 12
6+
- 1aaaed5 fix: fix bin permission
7+
- 99f42cb feat: upgrade to TS version
18

29
1.4.7 / 2021-11-18
310
==================
@@ -139,5 +146,3 @@
139146
==================
140147

141148
* Initial version, support find process by port/pid/name
142-
143-
## 2.0.0 (2025-07-05)

scripts/check-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ console.log(`🔍 Checking version: ${version}`)
1212
// 检查 git tag
1313
try {
1414
const gitTags = execSync('git tag --list', { encoding: 'utf8' }).trim().split('\n')
15-
const versionTag = `v${version}`
15+
const versionTag = `${version}`
1616

1717
if (gitTags.includes(versionTag)) {
1818
console.log(`✅ Git tag ${versionTag} exists`)
1919
} else {
2020
console.error(`❌ Git tag ${versionTag} not found!`)
21-
console.error('Please create the tag with: git tag v' + version)
21+
console.error('Please create the tag with: git tag ' + versionTag)
2222
process.exit(1)
2323
}
2424
} catch (error) {

scripts/update-history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const insertIndex = lines.findIndex(line => line.startsWith('## '))
5656
if (insertIndex !== -1) {
5757
lines.splice(insertIndex, 0, changelogEntry.trim())
5858
} else {
59-
lines.push(changelogEntry.trim())
59+
lines.unshift(changelogEntry.trim())
6060
}
6161

6262
// 写回文件

0 commit comments

Comments
 (0)