mirror: A tiny/fast dataloader implementation
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: bump to oxc@30

The one where we get comments in dts

Marais Rossouw (Sep 25, 2024, 2:54 PM +1000) 646fd9e5 867cacb3

+13 -3
+13 -3
scripts/build.ts
··· 1 1 // Credit @lukeed https://github.com/lukeed/empathic/blob/main/scripts/build.ts 2 2 3 - import oxc from 'npm:oxc-transform@^0.25'; 3 + // Publish: 4 + // -> edit package.json version 5 + // -> edit deno.json version 6 + // $ git commit "release: x.x.x" 7 + // $ git tag "vx.x.x" 8 + // $ git push origin main --tags 9 + // #-> CI builds w/ publish 10 + 11 + import oxc from 'npm:oxc-transform@^0.30'; 4 12 import { join, resolve } from '@std/path'; 5 13 6 14 import denoJson from '../deno.json' with { type: 'json' }; ··· 21 29 let xform = oxc.transform(entry, source, { 22 30 typescript: { 23 31 onlyRemoveTypeImports: true, 24 - declaration: true, 32 + declaration: { 33 + stripInternal: true, 34 + }, 25 35 }, 26 36 }); 27 37 ··· 33 43 34 44 outfile = `${outdir}/${name}.mjs`; 35 45 console.log('> writing "%s" file', outfile); 36 - await Deno.writeTextFile(outfile, xform.sourceText); 46 + await Deno.writeTextFile(outfile, xform.code); 37 47 } 38 48 39 49 if (exists(outdir)) {