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.
If one defines the following in
package.jsonthen type checking is not working correctly:I debugged the code, the type checking is performed, and
diagnosticarray gets populated, but laterfilteredDiagnosticsarray gets empty becauseconfig.formatisesm, notcjsso everything get filtered out.