-
Notifications
You must be signed in to change notification settings - Fork 682
Expand file tree
/
Copy pathstart.ts
More file actions
22 lines (15 loc) · 812 Bytes
/
start.ts
File metadata and controls
22 lines (15 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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 'node:os';
import { PackageJsonLookup } from '@rushstack/node-core-library';
import { Colorize } from '@rushstack/terminal';
import { ApiDocumenterCommandLine } from './cli/ApiDocumenterCommandLine.ts';
const myPackageVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version;
console.log(
os.EOL +
Colorize.bold(
`api-documenter ${myPackageVersion} ` + Colorize.cyan(' - https://api-extractor.com/') + os.EOL
)
);
const parser: ApiDocumenterCommandLine = new ApiDocumenterCommandLine();
parser.executeAsync().catch(console.error); // CommandLineParser.executeAsync() should never reject the promise