Skip to content

Commit

Permalink
fix: cursor loss when exiting during installation (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
mancuoj and antfu authored Sep 12, 2024
1 parent d5c5f77 commit 02b0905
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"npm-registry-fetch": "^17.1.0",
"picocolors": "^1.0.1",
"prompts": "^2.4.2",
"restore-cursor": "^5.1.0",
"rimraf": "^6.0.1",
"semver": "^7.6.3",
"taze": "workspace:*",
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Argv } from 'yargs'
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'
import c from 'picocolors'
import restoreCursor from 'restore-cursor'
import pkgJson from '../package.json'
import { check } from './commands/check'
import { usage } from './commands/usage'
Expand Down Expand Up @@ -150,3 +151,5 @@ yargs(hideBin(process.argv))
.alias('v', 'version')
.help()
.argv

restoreCursor()

0 comments on commit 02b0905

Please sign in to comment.