File tree 2 files changed +5
-11
lines changed
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' ) ;
3
2
const logger = require ( './utils/logger' ) ;
4
3
const getPackageManager = require ( './utils/get-package-manager' ) ;
5
4
6
- module . exports = WebpackCLI ;
7
-
5
+ module . exports = CLI ;
8
6
// 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 {
227
227
return flags ;
228
228
}
229
229
230
- async run ( args ) {
230
+ async run ( args , parseOptions ) {
231
231
// Built-in internal commands
232
232
const bundleCommandOptions = {
233
233
name : 'bundle' ,
@@ -712,7 +712,7 @@ class WebpackCLI {
712
712
await this . program . parseAsync ( [ commandName , ...options ] , { from : 'user' } ) ;
713
713
} ) ;
714
714
715
- await this . program . parseAsync ( args ) ;
715
+ await this . program . parseAsync ( args , parseOptions ) ;
716
716
}
717
717
718
718
async resolveConfig ( options ) {
You can’t perform that action at this time.
0 commit comments