@cloudcommerce/cli 2.40.12 → 2.41.0
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/cli.js +4 -2
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -182,8 +182,10 @@ Finish by saving the following secrets to your GitHub repository:
|
|
|
182
182
|
$.verbose = true;
|
|
183
183
|
const prefix = joinPath(pwd, 'functions/ssr');
|
|
184
184
|
// https://docs.astro.build/en/reference/cli-reference/#astro-dev
|
|
185
|
-
const host = typeof argv.host === 'string'
|
|
186
|
-
|
|
185
|
+
const host = typeof argv.host === 'string'
|
|
186
|
+
? argv.host : 'localhost';
|
|
187
|
+
const port = typeof argv.port === 'string' || typeof argv.port === 'number'
|
|
188
|
+
? argv.port : '4321';
|
|
187
189
|
return $`npm --prefix "${prefix}" run dev -- --host ${host} --port ${port}`;
|
|
188
190
|
}
|
|
189
191
|
if (argv._.includes('import')) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.41.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce CLI tools",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cloudcommerce": "./bin/run.mjs"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"md5": "^2.3.0",
|
|
39
39
|
"typescript": "~5.8.2",
|
|
40
40
|
"zx": "^8.4.1",
|
|
41
|
-
"@cloudcommerce/api": "2.
|
|
41
|
+
"@cloudcommerce/api": "2.41.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "bash ../../scripts/build-lib.sh"
|