Skip to content

Commit 29bbc70

Browse files
authored
Merge branch 'next' into base-merge
2 parents d14b1e4 + aafc0e1 commit 29bbc70

5 files changed

Lines changed: 15 additions & 16 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ In case you are suggesting a new feature, we will match your idea with our curre
6161
- `git clone <your-clone-url> && cd webpack-cli`
6262

6363
- We use [yarn](https://yarnpkg.com/lang/en/) workspaces, please install it:
64-
```bash
65-
npm install -g yarn
66-
```
64+
65+
Read the [Installation Guide](https://yarnpkg.com/en/docs/install) on their official website for detailed instructions on how to install Yarn.
6766

6867
> Using yarn is not a requirement, [npm](https://www.npmjs.com/) is included in node.
6968

packages/webpack-cli/lib/groups/ConfigGroup.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { existsSync } = require('fs');
22
const { resolve, sep, dirname, parse } = require('path');
3-
const { extensions } = require('interpret');
43
const webpackMerge = require('webpack-merge');
4+
const { extensions, jsVariants } = require('interpret');
55
const GroupHelper = require('../utils/GroupHelper');
66
const rechoir = require('rechoir');
77
const MergeError = require('../utils/errors/MergeError');
@@ -28,12 +28,6 @@ const modeAlias = {
2828
development: 'dev',
2929
};
3030

31-
const fileTypes = {
32-
'.babel.js': ['@babel/register', 'babel-register', 'babel-core/register', 'babel/register'],
33-
'.babel.ts': ['@babel/register'],
34-
'.ts': ['ts-node/register', 'tsconfig-paths/register'],
35-
};
36-
3731
const getDefaultConfigFiles = () => {
3832
return DEFAULT_CONFIG_LOC.map((filename) => {
3933
return Object.keys(extensions).map((ext) => {
@@ -71,7 +65,7 @@ class ConfigGroup extends GroupHelper {
7165
}
7266

7367
requireConfig(configModule) {
74-
const extension = Object.keys(fileTypes).find((t) => configModule.ext.endsWith(t));
68+
const extension = Object.keys(jsVariants).find((t) => configModule.ext.endsWith(t));
7569

7670
if (extension) {
7771
this.requireLoader(extension, configModule.path);

packages/webpack-cli/lib/utils/arg-parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function argParser(options, args, argsOnly = false, name = '', helpFunction = un
1616
const parser = new commander.Command();
1717
// Set parser name
1818
parser.name(name);
19+
parser.storeOptionsAsProperties(false);
1920

2021
if (commands) {
2122
commands.reduce((parserInstance, cmd) => {

packages/webpack-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"ansi-escapes": "^4.3.1",
3030
"chalk": "^3.0.0",
3131
"command-line-usage": "^6.1.0",
32-
"commander": "^5.0.0",
32+
"commander": "^6.0.0",
3333
"enquirer": "^2.3.4",
3434
"execa": "^4.0.0",
3535
"import-local": "^3.0.2",

yarn.lock

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3989,11 +3989,16 @@ commander@^2.20.0, commander@~2.20.3:
39893989
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
39903990
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
39913991

3992-
commander@^5.0.0, commander@^5.1.0:
3992+
commander@^5.1.0:
39933993
version "5.1.0"
39943994
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
39953995
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==
39963996

3997+
commander@^6.0.0:
3998+
version "6.0.0"
3999+
resolved "https://registry.yarnpkg.com/commander/-/commander-6.0.0.tgz#2b270da94f8fb9014455312f829a1129dbf8887e"
4000+
integrity sha512-s7EA+hDtTYNhuXkTlhqew4txMZVdszBmKWSPEMxGr8ru8JXR7bLUFIAtPhcSuFdJQ0ILMxnJi8GkQL0yvDy/YA==
4001+
39974002
commitlint-config-cz@^0.13.0:
39984003
version "0.13.1"
39994004
resolved "https://registry.yarnpkg.com/commitlint-config-cz/-/commitlint-config-cz-0.13.1.tgz#26ec3096e3e53dca1e3c389127678a0bc41b814b"
@@ -11558,9 +11563,9 @@ typedarray@^0.0.6:
1155811563
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1155911564

1156011565
typescript@^3.9.5:
11561-
version "3.9.6"
11562-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.6.tgz#8f3e0198a34c3ae17091b35571d3afd31999365a"
11563-
integrity sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==
11566+
version "3.9.7"
11567+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
11568+
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
1156411569

1156511570
typical@^5.0.0, typical@^5.2.0:
1156611571
version "5.2.0"

0 commit comments

Comments
 (0)