Comparing version 0.8.1 to 0.8.2
@@ -35,16 +35,22 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const simpleOpts = { | ||
native: opts.native | ||
}; | ||
const res = yield prj.buildAsync(simpleOpts); | ||
let output = ""; | ||
for (let diagnostic of res.diagnostics) { | ||
const category = diagnostic.category == 1 ? chalk.red("error") : diagnostic.category == 2 ? chalk.yellowBright("warning") : "message"; | ||
if (diagnostic.fileName) | ||
output += `${diagnostic.fileName}(${diagnostic.line + 1},${diagnostic.column + 1}): `; | ||
output += `${category} TS${diagnostic.code}: ${diagnostic.messageText}\n`; | ||
try { | ||
const simpleOpts = { | ||
native: opts.native | ||
}; | ||
const res = yield prj.buildAsync(simpleOpts); | ||
let output = ""; | ||
for (let diagnostic of res.diagnostics) { | ||
const category = diagnostic.category == 1 ? chalk.red("error") : diagnostic.category == 2 ? chalk.yellowBright("warning") : "message"; | ||
if (diagnostic.fileName) | ||
output += `${diagnostic.fileName}(${diagnostic.line + 1},${diagnostic.column + 1}): `; | ||
output += `${category} TS${diagnostic.code}: ${diagnostic.messageText}\n`; | ||
} | ||
if (output) | ||
console.log(output.replace(/\n$/, "")); | ||
return res.success; | ||
} | ||
if (output) | ||
console.log(output.replace(/\n$/, "")); | ||
return res.success; | ||
catch (e) { | ||
error("Exception: " + e.stack); | ||
return false; | ||
} | ||
}); | ||
@@ -170,11 +176,5 @@ } | ||
} | ||
try { | ||
const ok = yield buildOnePrj(opts, prj0); | ||
if (!ok) | ||
success = false; | ||
} | ||
catch (e) { | ||
error("Exception: " + e.message); | ||
const ok = yield buildOnePrj(opts, prj0); | ||
if (!ok) | ||
success = false; | ||
} | ||
} | ||
@@ -181,0 +181,0 @@ } |
{ | ||
"name": "makecode", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125065