Open cspotcode opened 3 years ago
We discussed this on Discord: https://discord.com/channels/508357248330760243/508357707602853888/843546169752813589
process.emitWarning()
warnings: boolean
to API surface
false
to disable themonWarning: callback
to API surface
process.emitWarning
TSNODE<4-digit number>
DEP1234
; TypeScript uses TS1234
process.on('warning'
handlers"warnings": false
, but a warning emits before tsconfig is loaded
"target"
warning, we can do this
Blocked by #1445
Building off of #1202, we know the maximum "target" you can use for the given node version, so we can log a helpful warning when your target is wrong:
Questions
ts-node/register
? For--loader ts-node/esm
? I don't think libraries should send output to stderr, butts-node/register
is a weird case because it's almost exclusively used from the CLI.disableNodeCompatibilityWarnings
option be renamed to allow more than 2 modes?