fix: updated build to include a shebang
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
@@ -93,7 +94,7 @@ function getResult(error, result) {
|
||||
}
|
||||
}
|
||||
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, '');
|
||||
}
|
||||
function postBuild(name, result, metaString) {
|
||||
@@ -122,7 +123,9 @@ function postBuild(name, result, metaString) {
|
||||
}
|
||||
function doErrorFile(name, error) {
|
||||
let paths = main_1.AllPaths.script(name);
|
||||
let content = `${new Date().toISOString()}\n\n${error}`;
|
||||
let content = `${new Date().toISOString()}
|
||||
|
||||
${error}`;
|
||||
if (error !== null) {
|
||||
(0, fs_1.writeFileSync)(paths.error, content);
|
||||
if ((0, fs_1.existsSync)(paths.dist)) {
|
||||
@@ -133,4 +136,4 @@ function doErrorFile(name, error) {
|
||||
(0, fs_1.unlinkSync)(paths.error);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=build.js.map
|
||||
//# sourceMappingURL=build.js.map
|
||||
|
||||
Reference in New Issue
Block a user