ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

Add node*-esm @tsconfig/bases, add @tsconfig/node18

Open cspotcode opened this issue 4 years ago • 0 comments

Related: https://github.com/tsconfig/bases/issues/76

Augment @tsconfig/bases logic. Detect TS >= 4.5. If TS>=4.5, use @tsconfig/node12-esm, node14-esm, or node16-esm.

  • Add 3x deps
  • Add logic to detect TS version
  • Add tests
    • What should these tests do? Attempt to both require() and import() within a CJS file? To prove that both require() and dynamic import() are emitted?
  • update docs
    • mention new @tsconfigs

Also add @tsconfig/node18

cspotcode avatar Oct 12 '21 19:10 cspotcode