Skip to content

Verify TypeScript version #259

@rexxars

Description

@rexxars

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:

  1. Install/downgrade to TypeScript < 5.4
  2. Ensure you have module: 'preserve' in your tsconfig
  3. Run plugin-kit verify-package
  4. See error

Expected behavior

Should show error about TypeScript version not being sufficient for the suggested option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions