User story
I would like to be able to provide multiple tsconfigs to the TypeScript plugin.
- It would enable me to combine multiple monorepo projects in one report. For Nx, there could be a helper function that auto-detects the tsconfigs. A similar feature is already available for the ESLint and Coverage plugins.
- It may also come in handy when I have a different configuration for production and testing code (e.g.,
tsconfig.lib.json vs tsconfig.spec.json).
This feature will also be useful for development in the CLI repo. Currently, the standalone configuration provides tsconfig.base.json, which leads to false positive compilation errors like unknown vitest globals in test files.
Acceptance criteria
Implementation details
See @code-pushup/eslint-plugin and @code-pushup/coverage-plugin for inspiration.
User story
I would like to be able to provide multiple tsconfigs to the TypeScript plugin.
tsconfig.lib.jsonvstsconfig.spec.json).This feature will also be useful for development in the CLI repo. Currently, the standalone configuration provides
tsconfig.base.json, which leads to false positive compilation errors like unknownvitestglobals in test files.Acceptance criteria
@nx/devkitis dynamically imported as an optional peer dependency (non-Nx users don't need to install it)Implementation details
See
@code-pushup/eslint-pluginand@code-pushup/coverage-pluginfor inspiration.