fix: applied shebang to wrong file
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
"use strict";
|
"use strict";
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
@@ -94,7 +93,7 @@ function getResult(error, result) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function clearFilenameComments(content) {
|
function clearFilenameComments(content) {
|
||||||
let regexp = new RegExp(`//\s*${main_1.AllPaths.base.in}/.*(?:\n|$)`, 'g');
|
let regexp = new RegExp(`//\\s*${main_1.AllPaths.base.in}/.*(?:\\n|$)`, 'g');
|
||||||
return content.replace(regexp, '');
|
return content.replace(regexp, '');
|
||||||
}
|
}
|
||||||
function postBuild(name, result, metaString) {
|
function postBuild(name, result, metaString) {
|
||||||
@@ -123,9 +122,7 @@ function postBuild(name, result, metaString) {
|
|||||||
}
|
}
|
||||||
function doErrorFile(name, error) {
|
function doErrorFile(name, error) {
|
||||||
let paths = main_1.AllPaths.script(name);
|
let paths = main_1.AllPaths.script(name);
|
||||||
let content = `${new Date().toISOString()}
|
let content = `${new Date().toISOString()}\n\n${error}`;
|
||||||
|
|
||||||
${error}`;
|
|
||||||
if (error !== null) {
|
if (error !== null) {
|
||||||
(0, fs_1.writeFileSync)(paths.error, content);
|
(0, fs_1.writeFileSync)(paths.error, content);
|
||||||
if ((0, fs_1.existsSync)(paths.dist)) {
|
if ((0, fs_1.existsSync)(paths.dist)) {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
"use strict";
|
"use strict";
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
@@ -154,6 +155,9 @@ 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(`\nFinished Compiling\n${exports.CLIArgs.watch ? 'Listening for Changes\n' : ''}`);
|
console.log(`
|
||||||
|
Finished Compiling
|
||||||
|
${exports.CLIArgs.watch ? 'Listening for Changes
|
||||||
|
' : ''}`);
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=main.js.map
|
//# sourceMappingURL=main.js.map
|
||||||
@@ -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/build.js)\" > lib/build.js",
|
"build": "npm run prettier && tsc && echo \"#!/usr/bin/env node\n$(cat lib/main.js)\" > lib/main.js",
|
||||||
"test": "node ./test/test.mjs"
|
"test": "node ./test/test.mjs"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user