From 029ef5adb484711d07602d8e90c4112fe7a2d175 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Thu, 19 Oct 2023 15:28:44 +0200 Subject: [PATCH] :recycle: Update build.js to improve cli out --- bs/build.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bs/build.js b/bs/build.js index ac03baf..d19b167 100755 --- a/bs/build.js +++ b/bs/build.js @@ -23,14 +23,17 @@ $.api("", true) f=> s.echo(f).to(out) )(s.cat(out)); const file_dts= file_root+".d.ts"; - s.echo(bundleDTS(file_dts)).to(filesOut(file_dts)); + const file_dts_out= filesOut(file_dts); + echo(` ${file_dts_out}`) + s.echo(bundleDTS(file_dts)).to(file_dts_out); + echo("⚡ Done"); toDDE(out, filesOut(file, "dde")); } $.exit(0); function toDDE(file, out){ const name= "dde"; - echo(`\n ${out} (${file} → globalThis.${name})\n`); + echo(` ${out} (${file} → globalThis.${name})`); let content= s.cat(file).toString().split(/export ?{/); content.splice(1, 0, `\nglobalThis.${name}= {`); @@ -42,7 +45,7 @@ $.api("", true) "})();" ].join("\n")).to(out); - echo("⚡ Done\n"); + echo("⚡ Done"); } }) .parse();