From 302b8feee4a4814f0b141205a4a798203e29e642 Mon Sep 17 00:00:00 2001 From: zomo Date: Wed, 19 Jul 2023 23:25:10 -0500 Subject: [PATCH] fix: shebang insertion broke escaped characters --- lib/main.js | 7 ++----- package.json | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/main.js b/lib/main.js index f1f89c5..0697dd4 100644 --- a/lib/main.js +++ b/lib/main.js @@ -155,9 +155,6 @@ async function doCompile() { doCompile().then(scriptMeta => { if (exports.CLIArgs.readme) (0, readmefile_1.updateReadmeFile)(scriptMeta); - console.log(` -Finished Compiling -${exports.CLIArgs.watch ? 'Listening for Changes -' : ''}`); + console.log(`\nFinished Compiling\n${exports.CLIArgs.watch ? 'Listening for Changes\n' : ''}`); }); -//# sourceMappingURL=main.js.map +//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/package.json b/package.json index db670a0..833b4cd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "prettier": "prettier --write .", - "build": "npm run prettier && tsc && echo \"#!/usr/bin/env node\n$(cat lib/main.js)\" > lib/main.js", + "build": "npm run prettier && tsc && printf \"%s\\n%s\" '#!/usr/bin/env node' \"$(cat lib/main.js)\" > lib/main.js", "test": "node ./test/test.mjs" }, "repository": {