mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
* feat(api-extractor): support multiple entrypoints * chore: initial support in generateSplitDocumentation * chore: bring in line with upstream * refactor: multiple entrypoints in scripts * fix: split docs * feat: website * fix: docs failing on next * fix: don't include dtypes for now * refactor: don't fetch entrypoint if there is none --------- Co-authored-by: iCrawl <buechler.noel@outlook.com>
21 lines
780 B
TypeScript
21 lines
780 B
TypeScript
// 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 * as process from 'node:process';
|
|
import colors from 'colors';
|
|
import { Extractor } from './api/Extractor.js';
|
|
import { ApiExtractorCommandLine } from './cli/ApiExtractorCommandLine.js';
|
|
|
|
console.log(
|
|
os.EOL + colors.bold(`api-extractor ${Extractor.version} ` + colors.cyan(' - https://api-extractor.com/') + os.EOL),
|
|
);
|
|
|
|
const parser: ApiExtractorCommandLine = new ApiExtractorCommandLine();
|
|
|
|
// eslint-disable-next-line promise/prefer-await-to-callbacks
|
|
parser.executeAsync().catch((error) => {
|
|
console.error(colors.red(`An unexpected error occurred:`), error);
|
|
process.exit(1);
|
|
});
|