Skip to content

Commit

Permalink
feat: check latest version & show local version
Browse files Browse the repository at this point in the history
  • Loading branch information
leedom92 committed Apr 20, 2024
1 parent 6fe403c commit e607e70
Show file tree
Hide file tree
Showing 5 changed files with 420 additions and 19 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import color from 'picocolors'
import {
banner,
checkDuplicateDir,
checkNewVersion,
choices,
download,
fixDirectoryPath,
Expand All @@ -24,6 +25,8 @@ async function init() {

await stinger()

await checkNewVersion().catch(() => process.exit(0))

const args = process.argv.slice(2)

const { positionals } = parseArgs({
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@
"degit": "^2.8.4",
"glob": "^10.3.12",
"gradient-string": "^2.0.2",
"picocolors": "^1.0.0"
"is-online": "9.0.1",
"picocolors": "^1.0.0",
"semver": "^7.6.0"
},
"devDependencies": {
"@leedomjs/eslint-config-ts": "^0.9.0",
"@leedomjs/eslint-config-ts": "^0.10.0",
"@types/node": "^20.12.2",
"bumpp": "^9.4.0",
"eslint": "^8.57.0",
Expand Down
Loading

0 comments on commit e607e70

Please sign in to comment.