Skip to content

Commit

Permalink
fix: ignore tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
shaw committed Nov 26, 2020
1 parent b09a6d0 commit 7c346d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
.vscode
npm-debug.log

tmp
src
tsconfig.json
.eslintignore
Expand Down
2 changes: 1 addition & 1 deletion src/commands/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class CommandList extends Command {
const fromArr = from.split('/').slice(-2)
from = fromArr.join('/').replace('.git', '')
} else {
from = from.replace(this.context.get('env.home'), '~')
from = from?.replace(this.context.get('env.home'), '~')
}
from = this.style.dim(from || '')
let txt = `\n${index} ${title}${version} ${from}`
Expand Down

0 comments on commit 7c346d1

Please sign in to comment.