Skip to content

Commit 7d7d9e5

Browse files
authoredMar 25, 2023
Replace "args" with "arguments" in config file template (#764)
* Replace "args" with "arguments" in config file template In the template for the config JS file, options.webpackConfig.args was used instead of options.webpackConfig.arguments, which is the correct property. * Updated a few other files with the same mistake * More missed files
1 parent 3d13a15 commit 7d7d9e5

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
 

‎.dependency-cruiser.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@
281281
The (optional) fileName attribute specifies which file to take (relative to dependency-cruiser's
282282
current working directory. When not provided defaults to './webpack.conf.js'.
283283

284-
The (optional) `env` and `args` attributes contain the parameters to be passed if
284+
The (optional) `env` and `arguments` attributes contain the parameters to be passed if
285285
your webpack config is a function and takes them (see webpack documentation
286286
for details)
287287
*/
288288
// "webpackConfig": {
289289
// "fileName": "./webpack.conf.js"
290290
// "env": {},
291-
// "args": {}
291+
// "arguments": {}
292292
// },
293293
// "babelConfig": {
294294
// "fileName": "./.babelrc"

‎doc/real-world-samples/react-dependency-cruiser-config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ module.exports = {
228228
to dependency-cruiser's current working directory. When not provided defaults
229229
to './webpack.conf.js'.
230230
231-
The (optional) `env` and `args` attributes contain the parameters to be passed if
231+
The (optional) `env` and `arguments` attributes contain the parameters to be passed if
232232
your webpack config is a function and takes them (see webpack documentation
233233
for details)
234234
*/
235235
// , webpackConfig: {
236236
// fileName: './webpack.config.js'
237237
// , env: {}
238-
// , args: {}
238+
// , arguments: {}
239239
// }
240240

241241
/* How to resolve external modules - use "yarn-pnp" if you're using yarn's Plug'n'Play.

‎src/cli/init-config/config.js.template.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,21 +333,21 @@ module.exports = {
333333
to dependency-cruiser's current working directory. When not provided defaults
334334
to './webpack.conf.js'.
335335

336-
The (optional) `env` and `args` attributes contain the parameters to be passed if
336+
The (optional) `env` and `arguments` attributes contain the parameters to be passed if
337337
your webpack config is a function and takes them (see webpack documentation
338338
for details)
339339
*/
340340
{{#if useWebpackConfig}}
341341
webpackConfig: {
342342
fileName: '{{webpackConfig}}',
343343
// env: {},
344-
// args: {},
344+
// arguments: {},
345345
},
346346
{{^}}
347347
// webpackConfig: {
348348
// fileName: './webpack.config.js',
349349
// env: {},
350-
// args: {},
350+
// arguments: {},
351351
// },
352352
{{/if}}
353353

‎test/extract/__mocks__/reachable/.dependency-cruiser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ module.exports = {
7474
The (optional) fileName attribute specifies which file to take (relative to dependency-cruiser's
7575
current working directory. When not provided defaults to './webpack.conf.js'.
7676
77-
The (optional) `env` and `args` attributes contain the parameters to be passed if
77+
The (optional) `env` and `arguments` attributes contain the parameters to be passed if
7878
your webpack config is a function and takes them (see webpack documentation
7979
for details)
8080
*/
8181
// , webpackConfig: {
8282
// fileName: './webpack.config.js'
8383
//, env: {}
84-
//, args: {}
84+
//, arguments: {}
8585
// }
8686
}
8787
};

‎test/integration/yarn-pnp.template/.dependency-cruiser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ module.exports = {
122122
The (optional) fileName attribute specifies which file to take (relative to dependency-cruiser's
123123
current working directory. When not provided defaults to './webpack.conf.js'.
124124
125-
The (optional) `env` and `args` attributes contain the parameters to be passed if
125+
The (optional) `env` and `arguments` attributes contain the parameters to be passed if
126126
your webpack config is a function and takes them (see webpack documentation
127127
for details)
128128
*/
129129
// , webpackConfig: {
130130
// fileName: './webpack.conf.js'
131131
// , env: {}
132-
// , args: {}
132+
// , arguments: {}
133133
// }
134134
}
135135
};

0 commit comments

Comments
 (0)