If your project has an older version of typescript, some of the TS Config checks fail.
For instance, checking for module: 'preserve' only works in TypeScript 5.4 and above. If you're running something below that, you'll get module: undefined. This is hard to debug, as the error message simply says:
The following fields had unexpected values: [module]
Expected to find these values:
"module": "preserve",
Please update your tsconfig.lib.json accordingly.
…even though your config does have this as the value.
To Reproduce
Steps to reproduce the behavior:
Install/downgrade to TypeScript < 5.4
Ensure you have module: 'preserve' in your tsconfig
Run plugin-kit verify-package
See error
Expected behavior
Should show error about TypeScript version not being sufficient for the suggested option.
Describe the bug
If your project has an older version of typescript, some of the TS Config checks fail. For instance, checking for
module: 'preserve'
only works in TypeScript 5.4 and above. If you're running something below that, you'll getmodule: undefined
. This is hard to debug, as the error message simply says:…even though your config does have this as the value.
To Reproduce
Steps to reproduce the behavior:
module: 'preserve'
in your tsconfigplugin-kit verify-package
Expected behavior
Should show error about TypeScript version not being sufficient for the suggested option.