forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ts
More file actions
18 lines (11 loc) · 758 Bytes
/
start.ts
File metadata and controls
18 lines (11 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as os from 'os';
import * as colors from 'colors';
import { PackageJsonLookup } from '@rushstack/node-core-library';
import { ApiDocumenterCommandLine } from './cli/ApiDocumenterCommandLine';
const myPackageVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version;
console.log(os.EOL + colors.bold(`api-documenter ${myPackageVersion} `
+ colors.cyan(' - https://api-extractor.com/') + os.EOL));
const parser: ApiDocumenterCommandLine = new ApiDocumenterCommandLine();
parser.execute().catch(console.error); // CommandLineParser.execute() should never reject the promise