esbuild-runner icon indicating copy to clipboard operation
esbuild-runner copied to clipboard

typescript check before run

Open hmz22 opened this issue 2 years ago • 1 comments

any plugin or way check type error before run? I have wrong type in typescript but esbuild runner just run code without checking type. I install npm i esbuild-plugin-ts-checker and add to plugin but not work

hmz22 avatar Aug 17 '22 11:08 hmz22

I would just use tsc -noEmit before running esbuild-runner :)

ex.:

tsc -noEmit && esr index.ts

akupiec avatar Feb 07 '24 21:02 akupiec