Andrew Bradley
Andrew Bradley
Regarding the CommonJS interop, I forgot about a nifty thing that Typescript's node16/nodenext mode does: You can do `import ansiColors = require('ansi-colors');` in *any* file, even ESM files. TS will...
I recommend taking some time to spec this out: Write down exactly what your TS should be transformed into so that your imports can be written in exactly the way...
Can repurpose this for the examples repo: https://github.com/TypeStrong/ts-node-npx-example Note to self: when I rename it, find references in docs and discussions, adjust those links if reasonable to do so Also...
Doesn't repro locally so might be isolated to the test suite, perhaps a doubly-registered source-map-support?
> Most likely this needs to live somewhere in the global namespace or somewhere like process. How about attached to the `module` module? ``` require(''module').tsNodeRegistered = true; ``` I suggest...
@d3lm moving discussion here, and renaming the issue to more accurately describe what I believe is the best solution. Highlighting Blake's comment above: > you need to check for overlaps...
I have labelled this issue to indicate we will accept a pull request implementing the proposal outlined in my previous comment. Please do not hesitate to ask me for guidance....
Possible duplicate of #729 Marking "help wanted" to indicate we will accept a pull request. Here is some context for any would-be author: We recognize certain TS diagnostics as "recoverable"...
@qpwo are you interested in writing a pull request for this?
No worries, this one should be manageable. Check out CONTRIBUTING.md and feel free to ask me any questions. `npm run test-local` pretty much does the heavy lifting. And thanks! On...