fix: shebang insertion broke escaped characters

This commit is contained in:
2023-07-19 23:25:10 -05:00
parent 7df811852d
commit 302b8feee4
2 changed files with 3 additions and 6 deletions

View File

@@ -155,9 +155,6 @@ async function doCompile() {
doCompile().then(scriptMeta => { doCompile().then(scriptMeta => {
if (exports.CLIArgs.readme) if (exports.CLIArgs.readme)
(0, readmefile_1.updateReadmeFile)(scriptMeta); (0, readmefile_1.updateReadmeFile)(scriptMeta);
console.log(` console.log(`\nFinished Compiling\n${exports.CLIArgs.watch ? 'Listening for Changes\n' : ''}`);
Finished Compiling
${exports.CLIArgs.watch ? 'Listening for Changes
' : ''}`);
}); });
//# sourceMappingURL=main.js.map //# sourceMappingURL=main.js.map

View File

@@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"prettier": "prettier --write .", "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" "test": "node ./test/test.mjs"
}, },
"repository": { "repository": {