UNPKG

alm

Version:

The best IDE for TypeScript

26 lines (25 loc) 913 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var chalk = require("chalk"); /** * Warning: This function is used without type checking from `server.ts` * Reason: Don't want the complexity of cyclic dependencies. * This file is only loaded lazily so its okay. * This file will load the `projectServiceWorker` into main server memory * But its okay cause its only for building after which we exit */ function doBuild(tsconfigFilePath) { var noErrors = true; // TODO: build // NOTE: before we can do build server stuff // we need to upgrade setActiveProjectConfigDetails to accept file contents upfront instead of asking the master for it. if (noErrors) { console.log(chalk.green('Build Succeeded')); process.exit(0); } else { console.log(chalk.red('Build Failed')); process.exit(1); } } exports.doBuild = doBuild;