@caweb/cli 1.12.1 → 1.12.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/commands/gen-scripts.js
CHANGED
|
@@ -43,7 +43,7 @@ export default async function genScripts({
|
|
|
43
43
|
"launch": "caweb launch",
|
|
44
44
|
"launch:multi": "caweb launch --multisite",
|
|
45
45
|
"launch:multi:subdomain": "caweb launch --multisite --subdomain",
|
|
46
|
-
"launch:sync": "caweb launch --sync --update
|
|
46
|
+
"launch:sync": "caweb launch --sync --update",
|
|
47
47
|
"launch:update": "caweb launch --update",
|
|
48
48
|
"stop": "caweb stop",
|
|
49
49
|
"shutdown": "caweb destroy",
|
package/lib/spinner.js
CHANGED
|
@@ -70,25 +70,25 @@ const withSpinner =
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
spinner.fail( msg )
|
|
73
|
-
process.exit( 1 );
|
|
74
|
-
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
}else if( error ){
|
|
78
|
-
//
|
|
74
|
+
// An Error was thrown.
|
|
75
|
+
}else if( error && 'object' === typeof error ){
|
|
76
|
+
// If the error has a message, use that.
|
|
79
77
|
spinner.fail(
|
|
80
78
|
typeof error === 'string' ? error : error.message
|
|
81
79
|
);
|
|
82
|
-
// Disable reason: Using console.error() means we get a stack trace.
|
|
83
|
-
console.error( error );
|
|
84
|
-
process.exit( 1 );
|
|
85
80
|
|
|
81
|
+
// Error is an unknown error. That means there was a bug in our code.
|
|
86
82
|
}else{
|
|
87
83
|
spinner.fail( 'An unknown error occurred.' );
|
|
88
|
-
|
|
84
|
+
|
|
85
|
+
// Using console.error() means we get a stack trace.
|
|
86
|
+
console.error( error );
|
|
89
87
|
|
|
90
88
|
}
|
|
91
89
|
|
|
90
|
+
process.exit( 1 );
|
|
91
|
+
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
94
|
};
|
|
@@ -157,6 +157,11 @@ async function configureApplicationPassword( environment, config, spinner ){
|
|
|
157
157
|
JSON.parse(fs.readFileSync(path.join(appPath, 'caweb.json')))
|
|
158
158
|
: {};
|
|
159
159
|
|
|
160
|
+
// Check if the caweb.json file has a sync property.
|
|
161
|
+
if( !cawebJson.sync ){
|
|
162
|
+
cawebJson.sync = {};
|
|
163
|
+
}
|
|
164
|
+
|
|
160
165
|
// Check if application password exists.
|
|
161
166
|
const exists = await runCLICmds(
|
|
162
167
|
environment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/cli",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "CAWebPublishing Command Line Interface.",
|
|
5
5
|
"exports": "./lib/env.js",
|
|
6
6
|
"type": "module",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@caweb/jshint-webpack-plugin": "^2.0.1",
|
|
70
70
|
"@caweb/webpack": "^1.5.0",
|
|
71
71
|
"@inquirer/prompts": "^7.5.3",
|
|
72
|
-
"@wordpress/create-block": "^4.
|
|
73
|
-
"@wordpress/env": "^10.
|
|
72
|
+
"@wordpress/create-block": "^4.69.0",
|
|
73
|
+
"@wordpress/env": "^10.26.0",
|
|
74
74
|
"axios": "^1.10.0",
|
|
75
75
|
"axios-retry": "^4.5.0",
|
|
76
76
|
"chalk": "^5.4.1",
|