@caweb/cli 1.13.2 → 1.13.3
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/lib/spinner.js +22 -4
- package/package.json +2 -2
package/lib/spinner.js
CHANGED
|
@@ -73,10 +73,28 @@ const withSpinner =
|
|
|
73
73
|
|
|
74
74
|
// An Error was thrown.
|
|
75
75
|
}else if( error && 'object' === typeof error ){
|
|
76
|
-
//
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
// Error is a docker compose error. That means something docker-related failed.
|
|
77
|
+
// https://github.com/PDMLab/docker-compose/blob/HEAD/src/index.ts
|
|
78
|
+
if(
|
|
79
|
+
'exitCode' in error &&
|
|
80
|
+
'err' in error &&
|
|
81
|
+
'out' in error
|
|
82
|
+
){
|
|
83
|
+
spinner.fail(
|
|
84
|
+
'Error while running docker compose command.'
|
|
85
|
+
);
|
|
86
|
+
if ( error.out ) {
|
|
87
|
+
console.log( error.out );
|
|
88
|
+
}
|
|
89
|
+
if ( error.err ) {
|
|
90
|
+
console.error( error.err );
|
|
91
|
+
}
|
|
92
|
+
}else{
|
|
93
|
+
// If the error has a message, use that.
|
|
94
|
+
spinner.fail(
|
|
95
|
+
typeof error === 'string' ? error : error.message
|
|
96
|
+
);
|
|
97
|
+
}
|
|
80
98
|
|
|
81
99
|
// Error is an unknown error. That means there was a bug in our code.
|
|
82
100
|
}else{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "CAWebPublishing Command Line Interface.",
|
|
5
5
|
"exports": "./lib/env.js",
|
|
6
6
|
"type": "module",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@caweb/webpack": "^1.5.3",
|
|
66
|
-
"@inquirer/prompts": "^7.
|
|
66
|
+
"@inquirer/prompts": "^7.7.1",
|
|
67
67
|
"@wordpress/create-block": "^4.69.0",
|
|
68
68
|
"@wordpress/env": "^10.26.0",
|
|
69
69
|
"axios": "^1.10.0",
|