cli
cli copied to clipboard
Feature: nuxi typecheck certain files
For my project I have lint-staged rules which run vitest related --run
, eslint --fix
and nuxi typecheck
.
lint-staged
actually passes staged files to these commands, which works well for the first two, where only the files in staging are checked.
This causes issues for vue-tsc
and nuxi typecheck
where it disregards this completely and performs a full check on the entire project.
I'm thinking there should be a way to specify the files to be typechecked similar to the how the tsc-files package works.
There is an open issue for the tsc
project to support this as right now when passing flies to tsc
it disregards the tsconfig.json
file. https://github.com/microsoft/TypeScript/issues/27379
Again, this also seems to be a feature request in the actual vue-tsc project https://github.com/vuejs/language-tools/issues/3233.