mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix: minify mainlib docs json (#9963)
* fix: minify mainlib docs json * fix: minify them all
This commit is contained in:
@@ -27,6 +27,8 @@ export class RunAction extends CommandLineAction {
|
||||
|
||||
private readonly _typescriptCompilerFolder: CommandLineStringParameter;
|
||||
|
||||
private readonly _minify: CommandLineFlagParameter;
|
||||
|
||||
public constructor(_parser: ApiExtractorCommandLine) {
|
||||
super({
|
||||
actionName: 'run',
|
||||
@@ -57,6 +59,12 @@ export class RunAction extends CommandLineAction {
|
||||
description: 'Show additional informational messages in the output.',
|
||||
});
|
||||
|
||||
this._minify = this.defineFlagParameter({
|
||||
parameterLongName: '--minify',
|
||||
parameterShortName: '-m',
|
||||
description: 'Minify the resulting doc model JSON, i.e. without any indentation or newlines.',
|
||||
});
|
||||
|
||||
this._diagnosticsParameter = this.defineFlagParameter({
|
||||
parameterLongName: '--diagnostics',
|
||||
description:
|
||||
@@ -136,6 +144,7 @@ export class RunAction extends CommandLineAction {
|
||||
|
||||
const extractorResult: ExtractorResult = Extractor.invoke(extractorConfig, {
|
||||
localBuild: this._localParameter.value,
|
||||
docModelMinify: this._minify.value,
|
||||
showVerboseMessages: this._verboseParameter.value,
|
||||
showDiagnostics: this._diagnosticsParameter.value,
|
||||
typescriptCompilerFolder,
|
||||
|
||||
Reference in New Issue
Block a user