mirror: Blazing fast w3c Trace Contexts for any JS runtime
0

Configure Feed

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

chore: let the npm folder own the package.json file

Marais Rossouw (Oct 15, 2024, 6:02 PM +1000) 05baadfe 5b8f0f2c

+7 -7
+2 -1
.gitignore
··· 1 1 .DS_Store 2 2 node_modules 3 3 /coverage 4 - /npm 4 + /npm/* 5 + !/npm/package.json
package.json npm/package.json
+5 -6
scripts/build.ts
··· 46 46 await Deno.writeTextFile(outfile, xform.code); 47 47 } 48 48 49 - if (exists(outdir)) { 50 - console.log('! removing "npm" directory'); 51 - await Deno.remove(outdir, { recursive: true }); 52 - } 53 - await Deno.mkdir(outdir); 49 + console.log('! cleaning "npm" directory'); 50 + await new Deno.Command('git', { 51 + args: ['clean', '-xfd', outdir], 52 + stderr: 'inherit', 53 + }).output(); 54 54 55 55 for (let [name, filename] of Object.entries(Inputs)) await transform(name, filename); 56 56 57 - await copy('package.json'); 58 57 await copy('readme.md'); 59 58 await copy('license'); 60 59