No way to specify -b flag for vue-tsc
Is your feature request related to a problem? Please describe.
The typescript config supports the build-flag for checking multiple projects 'references' (see also #65)
I'd like to have the same implementation for the Vue3 checks to have multiple tsconfigs for my vue-app and corresponding storybook and test files and to separate the checks and only include the files which are required for the specific tasks. This should also speed up the performance of larger projects.
create-vue uses also references in the tsconfig-creation
https://github.com/vuejs/create-vue/blob/12a7b40ac2020d636fa41be1e4e1af62ccaf6b5f/index.ts#L501 https://github.com/vuejs/create-vue/blob/12a7b40ac2020d636fa41be1e4e1af62ccaf6b5f/index.ts#L511
This is an example:
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.test.json" },
{ "path": "./tsconfig.node.json" },
]
}
Running vite-plugin-checker with this config structure without the build-flag wouldn't check anything and always show [vue-tsc] Found 0 errors. Watching for file changes.
Describe the solution you'd like
Please support vue-tsc build flag
checker({
vueTsc: {
buildMode: true,
}
}
Describe alternatives you've considered
I've tried also tsconfig-extends, but for larger project and new create-vue apps it would be awesome to have a plugin-solution which also supports tsconfig-references.
Additional context
No response
Validations
- [x] Read the docs.
- [x] Read the Contributing Guidelines.
- [x] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
I think it would be generally awesome to be able to pass arguments to vue-tsc currently its limited to setting the project path.