@caweb/cli 1.14.8 → 1.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/webpack/webpack.js +2 -2
- package/lib/cli.js +2 -2
- package/package.json +3 -3
|
@@ -26,7 +26,7 @@ export default async function webpack({
|
|
|
26
26
|
debug,
|
|
27
27
|
scheme,
|
|
28
28
|
template,
|
|
29
|
-
|
|
29
|
+
externals
|
|
30
30
|
} ) {
|
|
31
31
|
const webpackCommand = 'build' === process.argv[2] ? 'build' : 'serve' ;
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ export default async function webpack({
|
|
|
36
36
|
// Since we use @wordpress/scripts webpack config we can leverage
|
|
37
37
|
// the environment variables as well.
|
|
38
38
|
process.env.WP_COPY_PHP_FILES_TO_DIST = true;
|
|
39
|
-
process.env.WP_NO_EXTERNALS =
|
|
39
|
+
process.env.WP_NO_EXTERNALS = externals;
|
|
40
40
|
|
|
41
41
|
// add our default config as an extension.
|
|
42
42
|
// users can overwrite any values by creating a webconfig of their own.
|
package/lib/cli.js
CHANGED
|
@@ -50,8 +50,8 @@ function addWebpackCmds(){
|
|
|
50
50
|
program.command('build')
|
|
51
51
|
.description('Builds the current project.')
|
|
52
52
|
.option(
|
|
53
|
-
'--
|
|
54
|
-
'Bundles all dependencies into the build
|
|
53
|
+
'--externals',
|
|
54
|
+
'Bundles all dependencies into the build including externals.',
|
|
55
55
|
false
|
|
56
56
|
)
|
|
57
57
|
.allowUnknownOption(true)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/cli",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.10",
|
|
4
4
|
"description": "CAWebPublishing Command Line Interface.",
|
|
5
5
|
"exports": "./lib/env.js",
|
|
6
6
|
"type": "module",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@caweb/webpack": "^1.5.
|
|
66
|
+
"@caweb/webpack": "^1.5.9",
|
|
67
67
|
"@inquirer/prompts": "^7.9.0",
|
|
68
68
|
"@wordpress/create-block": "^4.77.0",
|
|
69
69
|
"@wordpress/env": "^10.34.0",
|
|
70
|
-
"axios": "^1.13.
|
|
70
|
+
"axios": "^1.13.2",
|
|
71
71
|
"axios-retry": "^4.5.0",
|
|
72
72
|
"chalk": "^5.6.2",
|
|
73
73
|
"commander": "^14.0.2",
|