@caweb/cli 1.6.30 → 1.7.1
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.
|
@@ -32,7 +32,7 @@ export default async function webpack({
|
|
|
32
32
|
const webpackCommand = 'build' === process.argv[2] ? 'build' : 'serve' ;
|
|
33
33
|
|
|
34
34
|
// we use our default config from the @caweb/html-webpack-plugin
|
|
35
|
-
const defaultConfigPath = path.resolve(
|
|
35
|
+
const defaultConfigPath = path.resolve('node_modules', '@caweb', 'html-webpack-plugin', 'webpack.config.js' );
|
|
36
36
|
|
|
37
37
|
// Since we use @wordpress/scripts webpack config we can leverage
|
|
38
38
|
// the environment variables as well.
|
|
@@ -46,18 +46,18 @@ export default async function webpack({
|
|
|
46
46
|
].filter(e => e);
|
|
47
47
|
|
|
48
48
|
// CommonJS
|
|
49
|
-
if( fs.existsSync( path.
|
|
49
|
+
if( fs.existsSync( path.resolve( 'webpack.config.cjs' ) ) ){
|
|
50
50
|
webPackArgs.push(
|
|
51
51
|
'--config',
|
|
52
|
-
path.
|
|
52
|
+
path.resolve('webpack.config.cjs' ),
|
|
53
53
|
'--merge'
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
// ESM
|
|
57
|
-
}else if( fs.existsSync(path.
|
|
57
|
+
}else if( fs.existsSync(path.resolve('webpack.config.js' )) ){
|
|
58
58
|
webPackArgs.push(
|
|
59
59
|
'--config',
|
|
60
|
-
path.
|
|
60
|
+
path.resolve('webpack.config.js' ),
|
|
61
61
|
'--merge'
|
|
62
62
|
)
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "CAWebPublishing Command Line Interface.",
|
|
5
5
|
"exports": "./lib/env.js",
|
|
6
6
|
"type": "module",
|
|
@@ -56,18 +56,19 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@caweb/webpack": "^1.
|
|
59
|
+
"@caweb/webpack": "^1.3.1",
|
|
60
60
|
"@inquirer/prompts": "^7.0.1",
|
|
61
|
-
"@wordpress/create-block": "^4.
|
|
62
|
-
"@wordpress/env": "^10.
|
|
61
|
+
"@wordpress/create-block": "^4.54.0",
|
|
62
|
+
"@wordpress/env": "^10.11.0",
|
|
63
63
|
"axios": "^1.7.7",
|
|
64
64
|
"axios-retry": "^4.5.0",
|
|
65
65
|
"chalk": "^5.3.0",
|
|
66
66
|
"commander": "^12.1.0",
|
|
67
67
|
"cross-spawn": "^7.0.3",
|
|
68
68
|
"docker-compose": "^1.1.0",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
69
|
+
"fs-extra": "^11.2.0",
|
|
70
|
+
"inquirer-select-pro": "^1.0.0-alpha.8",
|
|
71
|
+
"ora": "^8.1.1",
|
|
71
72
|
"resolve-bin": "^1.0.1",
|
|
72
73
|
"terminal-link": "^3.0.0"
|
|
73
74
|
}
|
package/template/index.cjs
CHANGED
|
@@ -12,11 +12,11 @@ const blockSlugTitle = blockSlug.charAt(0).toUpperCase() + blockSlug.substring(1
|
|
|
12
12
|
const customScripts = {};
|
|
13
13
|
|
|
14
14
|
const npmDependencies = [
|
|
15
|
-
'@wordpress/icons@10.
|
|
15
|
+
'@wordpress/icons@10.11.0'
|
|
16
16
|
];
|
|
17
17
|
|
|
18
18
|
const npmDevDependencies = [
|
|
19
|
-
'@wordpress/scripts@
|
|
19
|
+
'@wordpress/scripts@30.4.0'
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
module.exports = {
|