-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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 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.
Metadata
Metadata
Assignees
Labels
No labels