| 1519 | ? "node_modules\\.bin\\tsc --pretty" |
| 1520 | : "tsc --pretty", |
| 1521 | ts = function node_apps_build_typescript_ts() { |
| 1522 | node.child(command, { |
| 1523 | cwd: projectPath |
| 1524 | }, function node_apps_build_typescript_callback(err:Error, stdout:string, stderr:string):void { |
| 1525 | if (stdout !== "" && stdout.indexOf(` \u001b[91merror${text.none} `) > -1) { |
| 1526 | console.log(`${text.red}TypeScript reported warnings.${text.none}`); |
| 1527 | apps.errout([stdout]); |
| 1528 | return; |
| 1529 | } |
| 1530 | if (err !== null) { |
| 1531 | apps.errout([err.toString()]); |
| 1532 | return; |
| 1533 | } |
| 1534 | if (stderr !== "") { |
| 1535 | apps.errout([stderr]); |
| 1536 | return; |
| 1537 | } |
| 1538 | next(`${text.green}TypeScript build completed without warnings.${text.none}`); |
| 1539 | }); |
| 1540 | }; |
| 1541 | heading("TypeScript Compilation"); |
| 1542 | node.fs.stat(`${projectPath}services.ts`, function node_apps_build_typescript_services(err:Error) { |
| 1543 | if (err !== null) { |