flat
flat copied to clipboard
[chore]: use typescript language re-write scripts
As JavaScript is not as easy to maintain later as TypeScript, we intend to rewrite it using TypeScript. Runtime environments can be used: ts-node etc. If you have a better idea, please let us know.
cc: @hyrious @LitoMore
I have used my esbuild-dev in flat-web scripts. Another choice would be esno.
In fact, without any other tools you can just do:
esbuild scripts/build.ts | node --input-type=module
In fact, without any other tools you can just do:
esbuild scripts/build.ts | node --input-type=module
This is enough to use, IMO.