3 ms·
Curious to how you set this up without going crazy (and CI working)? Just a line in package.json that runs tsc, then another one that runs esbuild on the output
by e12e 6y ago
Curious to how you set this up without going crazy (and CI working)? Just a line in package.json that runs tsc, then another one that runs esbuild on the output?
- jannes 6y agoIt's a pretty simple setup for now. For tsc it's a single line in package.json (+tsconfig with outdir: "dist"). For esbuild I am running the following Node script (saved as .mjs): import esbuild from 'esbuild'; let args = process.argv.slice(2); await esbuild.build({ watch: args.includes('-w'), entryPoints: [ 'dist/entry1.js', 'dist/entry2.js', 'dist/entry3.js', ], bundle: true, target: 'es5', outdir: 'bundles/', });