0.0.23 • Published 11 months ago

@slackoff/tsc-err-dirs v0.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

tsc-err-dirs npm

中文文档

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.

  1. Use tsc --noEmit --pretty false to get all the errors of each file which are not prettified format.
  2. Extract stdout and parse it to get the errors info of each file.
  3. Use inquirer-file-tree-selection-prompt to display the errors count on file tree.

License

MIT License © 2022 ShenQingchuan

0.0.23

11 months ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago