webpack-cli
Advanced tools
Comparing version 5.0.1 to 5.1.4
@@ -1,1 +0,1 @@ | ||
export * from "./types"; | ||
export type * from "./types"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./types"), exports); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const CLI = require("./webpack-cli"); | ||
module.exports = CLI; |
/// <reference types="node" /> | ||
import webpack, { EntryOptions, Stats, Configuration, WebpackError, StatsOptions, WebpackOptionsNormalized, Compiler, MultiCompiler, Problem, Argument, AssetEmittedInfo, FileCacheOptions } from "webpack"; | ||
import { ClientConfiguration, Configuration as DevServerConfig } from "webpack-dev-server"; | ||
import { Colorette } from "colorette"; | ||
import { Command, CommandOptions, Option, ParseOptions } from "commander"; | ||
import { prepare } from "rechoir"; | ||
import { stringifyStream } from "@discoveryjs/json-ext"; | ||
import type { EntryOptions, Stats, Configuration, WebpackError, StatsOptions, WebpackOptionsNormalized, Compiler, MultiCompiler, Problem, Argument, AssetEmittedInfo, FileCacheOptions } from "webpack"; | ||
import type webpack from "webpack"; | ||
import type { ClientConfiguration, Configuration as DevServerConfig } from "webpack-dev-server"; | ||
import { type Colorette } from "colorette"; | ||
import { type Command, type CommandOptions, type Option, type ParseOptions } from "commander"; | ||
import { type prepare } from "rechoir"; | ||
import { type stringifyStream } from "@discoveryjs/json-ext"; | ||
/** | ||
@@ -64,3 +65,3 @@ * Webpack CLI | ||
options: WebpackConfiguration | WebpackConfiguration[]; | ||
path: WeakMap<object, string>; | ||
path: WeakMap<object, string[]>; | ||
} | ||
@@ -70,3 +71,2 @@ interface WebpackCLICommand extends Command { | ||
forHelp: boolean | undefined; | ||
options: WebpackCLICommandOption[]; | ||
_args: WebpackCLICommandOption[]; | ||
@@ -77,3 +77,3 @@ } | ||
} | ||
type WebpackCLIMainOption = Pick<WebpackCLIBuiltInOption, "description" | "defaultValue" | "multiple"> & { | ||
type WebpackCLIMainOption = Pick<WebpackCLIBuiltInOption, "valueName" | "description" | "defaultValue" | "multiple"> & { | ||
flags: string; | ||
@@ -101,2 +101,3 @@ type: Set<BooleanConstructor | StringConstructor | NumberConstructor>; | ||
multiple?: boolean; | ||
valueName?: string; | ||
description: string; | ||
@@ -106,2 +107,3 @@ describe?: string; | ||
defaultValue?: string; | ||
helpLevel: "minimum" | "verbose"; | ||
} | ||
@@ -111,3 +113,2 @@ interface WebpackCLIBuiltInOption extends WebpackCLIBuiltInFlag { | ||
group?: "core"; | ||
helpLevel?: "minimum" | "verbose"; | ||
} | ||
@@ -132,2 +133,3 @@ type WebpackCLIExternalCommandInfo = Pick<WebpackCLIOptions, "name" | "alias" | "description"> & { | ||
disableInterpret?: boolean; | ||
extends?: string[]; | ||
argv: Argv; | ||
@@ -155,7 +157,5 @@ }; | ||
type ProcessedArguments = Record<string, BasicPrimitive | RegExp | (BasicPrimitive | RegExp)[]>; | ||
type MultipleCompilerStatsOptions = StatsOptions & { | ||
children: StatsOptions[]; | ||
}; | ||
type CommandAction = Parameters<WebpackCLICommand["action"]>[0]; | ||
interface WebpackRunOptions extends WebpackOptionsNormalized { | ||
progress?: boolean | "profile"; | ||
json?: boolean; | ||
@@ -165,2 +165,3 @@ argv?: Argv; | ||
failOnWarnings?: boolean; | ||
isWatchingLikeCommand?: boolean; | ||
} | ||
@@ -184,3 +185,4 @@ /** | ||
interface CLIPluginOptions { | ||
configPath?: string; | ||
isMultiCompiler?: boolean; | ||
configPath?: string[]; | ||
helpfulOutput: boolean; | ||
@@ -238,2 +240,2 @@ hot?: boolean | "only"; | ||
} | ||
export { IWebpackCLI, WebpackCLICommandOption, WebpackCLIBuiltInOption, WebpackCLIBuiltInFlag, WebpackCLIColors, WebpackCLIStats, WebpackCLIConfig, WebpackCLIExternalCommandInfo, WebpackCLIOptions, WebpackCLICommand, WebpackCLICommandOptions, WebpackCLIMainOption, WebpackCLILogger, WebpackDevServerOptions, WebpackRunOptions, WebpackCompiler, WebpackConfiguration, Argv, Argument, BasicPrimitive, BasicPackageJsonContent, CallableOption, Callback, CLIPluginOptions, CommandAction, CommanderOption, CommandOptions, ConfigOptions, DynamicImport, FileSystemCacheOptions, FlagConfig, ImportLoaderError, Instantiable, JsonExt, ModuleName, MultipleCompilerStatsOptions, PackageInstallOptions, PackageManager, Path, ProcessedArguments, PromptOptions, Problem, PotentialPromise, Rechoir, RechoirError, }; | ||
export { IWebpackCLI, WebpackCLICommandOption, WebpackCLIBuiltInOption, WebpackCLIBuiltInFlag, WebpackCLIColors, WebpackCLIStats, WebpackCLIConfig, WebpackCLIExternalCommandInfo, WebpackCLIOptions, WebpackCLICommand, WebpackCLICommandOptions, WebpackCLIMainOption, WebpackCLILogger, WebpackDevServerOptions, WebpackRunOptions, WebpackCompiler, WebpackConfiguration, Argv, Argument, BasicPrimitive, BasicPackageJsonContent, CallableOption, Callback, CLIPluginOptions, CommandAction, CommanderOption, CommandOptions, ConfigOptions, DynamicImport, FileSystemCacheOptions, FlagConfig, ImportLoaderError, Instantiable, JsonExt, ModuleName, PackageInstallOptions, PackageManager, Path, ProcessedArguments, PromptOptions, Problem, PotentialPromise, Rechoir, RechoirError, }; |
{ | ||
"name": "webpack-cli", | ||
"version": "5.0.1", | ||
"version": "5.1.4", | ||
"description": "CLI for webpack & friends", | ||
@@ -38,7 +38,7 @@ "license": "MIT", | ||
"@discoveryjs/json-ext": "^0.5.0", | ||
"@webpack-cli/configtest": "^2.0.1", | ||
"@webpack-cli/info": "^2.0.1", | ||
"@webpack-cli/serve": "^2.0.1", | ||
"@webpack-cli/configtest": "^2.1.1", | ||
"@webpack-cli/info": "^2.0.2", | ||
"@webpack-cli/serve": "^2.0.5", | ||
"colorette": "^2.0.14", | ||
"commander": "^9.4.1", | ||
"commander": "^10.0.1", | ||
"cross-spawn": "^7.0.3", | ||
@@ -69,3 +69,3 @@ "envinfo": "^7.7.3", | ||
}, | ||
"gitHead": "4a0f89380b3f920652bda7dfc0c23405099b94b8" | ||
"gitHead": "e07f0e58df103011435524d757102534b75a6796" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110451
17
2301
21
+ Addedcommander@10.0.1(transitive)
+ Addedelectron-to-chromium@1.5.60(transitive)
- Removedcommander@9.5.0(transitive)
- Removedelectron-to-chromium@1.5.62(transitive)
Updated@webpack-cli/info@^2.0.2
Updated@webpack-cli/serve@^2.0.5
Updatedcommander@^10.0.1