File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 11import envinfo from 'envinfo' ;
22import logger from 'webpack-cli/lib/utils/logger' ;
3- import options from './options ' ;
3+ import { commands } from 'webpack-cli/lib/utils/cli-flags ' ;
44import WebpackCLI from 'webpack-cli' ;
55
66interface Information {
@@ -32,7 +32,8 @@ const DEFAULT_DETAILS: Information = {
3232
3333export default async function info ( ...args ) : Promise < string [ ] > {
3434 const cli = new WebpackCLI ( ) ;
35- const parsedArgs = cli . argParser ( options , args , true ) ;
35+ const { flags : infoFlags } = commands . find ( ( cmd ) => cmd . name === 'info' ) ;
36+ const parsedArgs = cli . argParser ( infoFlags , args , true ) ;
3637 const infoArgs = parsedArgs . opts ;
3738 const envinfoConfig = { } ;
3839
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments