File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
291.4.7 / 2021-11-18
310==================
139146==================
140147
141148 * Initial version, support find process by port/pid/name
142-
143- ## 2.0.0 (2025-07-05)
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ console.log(`🔍 Checking version: ${version}`)
1212// 检查 git tag
1313try {
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 ) {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const insertIndex = lines.findIndex(line => line.startsWith('## '))
5656if ( insertIndex !== - 1 ) {
5757 lines . splice ( insertIndex , 0 , changelogEntry . trim ( ) )
5858} else {
59- lines . push ( changelogEntry . trim ( ) )
59+ lines . unshift ( changelogEntry . trim ( ) )
6060}
6161
6262// 写回文件
You can’t perform that action at this time.
0 commit comments