1 | "use strict";
|
2 |
|
3 |
|
4 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
5 | if (k2 === undefined) k2 = k;
|
6 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
7 | }) : (function(o, m, k, k2) {
|
8 | if (k2 === undefined) k2 = k;
|
9 | o[k2] = m[k];
|
10 | }));
|
11 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
12 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
13 | }) : function(o, v) {
|
14 | o["default"] = v;
|
15 | });
|
16 | var __importStar = (this && this.__importStar) || function (mod) {
|
17 | if (mod && mod.__esModule) return mod;
|
18 | var result = {};
|
19 | if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
20 | __setModuleDefault(result, mod);
|
21 | return result;
|
22 | };
|
23 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
24 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
25 | };
|
26 | Object.defineProperty(exports, "__esModule", { value: true });
|
27 | const os = __importStar(require("os"));
|
28 | const colors_1 = __importDefault(require("colors"));
|
29 | const ApiExtractorCommandLine_1 = require("./cli/ApiExtractorCommandLine");
|
30 | const Extractor_1 = require("./api/Extractor");
|
31 | console.log(os.EOL +
|
32 | colors_1.default.bold(`api-extractor ${Extractor_1.Extractor.version} ` + colors_1.default.cyan(' - https://api-extractor.com/') + os.EOL));
|
33 | const parser = new ApiExtractorCommandLine_1.ApiExtractorCommandLine();
|
34 | parser.execute().catch((error) => {
|
35 | console.error(colors_1.default.red(`An unexpected error occurred: ${error}`));
|
36 | process.exit(1);
|
37 | });
|
38 |
|
\ | No newline at end of file |