0.0.23 • Published 2 years ago
@slackoff/tsc-err-dirs v0.0.23
tsc-err-dirs 
Display tsc errors count on file tree, can hot update when you change those files.
Screeshot
Requirement
- node version: >=16
- tsc version: >=4.5.5
- Installed Nerd Font
Warning: We recommend you to use this CLI app in Mac OS or Linux, since it's using a lot of shell features which may not have good support in Windows.
Install
npm i -g @slackoff/tsc-err-dirs
Usage
# the project root path MUST contains `tsconfig.json`
tsc-err-dirs <path-to-your-project-root>
Options
--engine
(shorthand:-e
)Type:
'tsc' | 'vue-tsc'
Select which tsc to be executed.
Internal
Since tsc
doesn't provide a way to get the errors count of each file, we have to use a trick to get it.
- Use
tsc --noEmit --pretty false
to get all the errors of each file which are not prettified format. - Extract stdout and parse it to get the errors info of each file.
- Use inquirer-file-tree-selection-prompt to display the errors count on file tree.
License
MIT License © 2022 ShenQingchuan
0.0.23
2 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago