UNPKG

1.85 kBJavaScriptView Raw
1"use strict";
2// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3// See LICENSE in the project root for license information.
4var __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}));
11var __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});
16var __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};
23var __importDefault = (this && this.__importDefault) || function (mod) {
24 return (mod && mod.__esModule) ? mod : { "default": mod };
25};
26Object.defineProperty(exports, "__esModule", { value: true });
27const os = __importStar(require("os"));
28const colors_1 = __importDefault(require("colors"));
29const ApiExtractorCommandLine_1 = require("./cli/ApiExtractorCommandLine");
30const Extractor_1 = require("./api/Extractor");
31console.log(os.EOL +
32 colors_1.default.bold(`api-extractor ${Extractor_1.Extractor.version} ` + colors_1.default.cyan(' - https://api-extractor.com/') + os.EOL));
33const parser = new ApiExtractorCommandLine_1.ApiExtractorCommandLine();
34parser.execute().catch((error) => {
35 console.error(colors_1.default.red(`An unexpected error occurred: ${error}`));
36 process.exit(1);
37});
38//# sourceMappingURL=start.js.map
\No newline at end of file