KCM

Results 6 comments of KCM

If your project is ESM-first, i.e. `"type": "module"`, you can use [`babel-dual-package`](https://github.com/morganney/babel-dual-package) to do this, although there would be a side effect of creating a dual CJS package that you...

There is a workaround if you run each parse call in it's own `child_process`. ```ts import { spawnSync } from 'node:child_process' import { join } from 'node:path' import type {...

The compiler is busted in its handling of the new file extension `.mts` in combination with `--module commonjs`. You can see my extended [rant](https://github.com/microsoft/TypeScript/issues/51990#issuecomment-1656904811) in the duplicate issue #51990.

Hi @byteatom thanks for reporting this. Did you want to open a PR?

> how would you have even run into this? I couldn't find a codemod that added the `displayName` so I've been writing my own to clean up a mess at...

Here's the test that was catching this: https://github.com/knightedcodemonkey/display-name/blob/main/test/displayName.ts#L10-L42 For now I've disabled the rule around those lines.