File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1- const WebpackCLI = require ( './webpack-cli' ) ;
2- const { commands } = require ( './utils/cli-flags' ) ;
1+ const CLI = require ( './webpack-cli' ) ;
32const logger = require ( './utils/logger' ) ;
43const getPackageManager = require ( './utils/get-package-manager' ) ;
54
6- module . exports = WebpackCLI ;
7-
5+ module . exports = CLI ;
86// export additional utils used by other packages
9- module . exports . utils = {
10- logger,
11- commands,
12- getPackageManager,
13- } ;
7+ module . exports . utils = { logger, getPackageManager } ;
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ class WebpackCLI {
227227 return flags ;
228228 }
229229
230- async run ( args ) {
230+ async run ( args , parseOptions ) {
231231 // Built-in internal commands
232232 const bundleCommandOptions = {
233233 name : 'bundle' ,
@@ -712,7 +712,7 @@ class WebpackCLI {
712712 await this . program . parseAsync ( [ commandName , ...options ] , { from : 'user' } ) ;
713713 } ) ;
714714
715- await this . program . parseAsync ( args ) ;
715+ await this . program . parseAsync ( args , parseOptions ) ;
716716 }
717717
718718 async resolveConfig ( options ) {
You can’t perform that action at this time.
0 commit comments