Skip to content

Setting cjs to false does not show type check errors #63

@isemanjski

Description

@isemanjski

If one defines the following in package.json then type checking is not working correctly:

{
   "zshy": {
      "exports": "./src/index.ts",
      "cjs": false
    }
}

I debugged the code, the type checking is performed, and diagnostic array gets populated, but later filteredDiagnostics array gets empty because config.format is esm, not cjs so everything get filtered out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions