@cloudcommerce/cli 2.8.7 → 2.9.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/.turbo/turbo-build.log +1 -1
- package/lib/cli.js +3 -3
- package/package.json +2 -2
- package/src/cli.ts +3 -3
package/.turbo/turbo-build.log
CHANGED
package/lib/cli.js
CHANGED
|
@@ -80,7 +80,7 @@ export default async () => {
|
|
|
80
80
|
}
|
|
81
81
|
return $`firebase --project=${projectId} ${cmd} ${options}`;
|
|
82
82
|
};
|
|
83
|
-
if (argv._.includes('serve')) {
|
|
83
|
+
if (argv._.includes('serve') || argv._.includes('preview')) {
|
|
84
84
|
if (argv.build !== false) {
|
|
85
85
|
await build(argv.codebase);
|
|
86
86
|
}
|
|
@@ -95,7 +95,7 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
95
95
|
throw err;
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
if (argv._.find((cmd) => /^(\w+:)?
|
|
98
|
+
if (argv._.find((cmd) => /^(\w+:)?shell$/.test(cmd))) {
|
|
99
99
|
return $firebase('functions:shell');
|
|
100
100
|
}
|
|
101
101
|
if (argv._.find((cmd) => /^(\w+:)?logs?$/.test(cmd))) {
|
|
@@ -175,7 +175,7 @@ Finish by saving the following secrets to your GitHub repository:
|
|
|
175
175
|
if (argv._.includes('prepare')) {
|
|
176
176
|
return prepareCodebases();
|
|
177
177
|
}
|
|
178
|
-
if (argv._.includes('dev') || !argv._.length) {
|
|
178
|
+
if (argv._.includes('dev') || argv._.includes('start') || !argv._.length) {
|
|
179
179
|
await prepareCodebases(true);
|
|
180
180
|
const prefix = joinPath(pwd, 'functions/ssr');
|
|
181
181
|
// https://docs.astro.build/en/reference/cli-reference/#astro-dev
|
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.9.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce CLI tools",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cloudcommerce": "./bin/run.mjs"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"md5": "^2.3.0",
|
|
30
30
|
"typescript": "~5.2.2",
|
|
31
31
|
"zx": "^7.2.3",
|
|
32
|
-
"@cloudcommerce/api": "2.
|
|
32
|
+
"@cloudcommerce/api": "2.9.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "bash ../../scripts/build-lib.sh"
|
package/src/cli.ts
CHANGED
|
@@ -103,7 +103,7 @@ export default async () => {
|
|
|
103
103
|
return $`firebase --project=${projectId} ${cmd} ${options}`;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
if (argv._.includes('serve')) {
|
|
106
|
+
if (argv._.includes('serve') || argv._.includes('preview')) {
|
|
107
107
|
if (argv.build !== false) {
|
|
108
108
|
await build(argv.codebase);
|
|
109
109
|
}
|
|
@@ -119,7 +119,7 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
if (argv._.find((cmd) => /^(\w+:)?
|
|
122
|
+
if (argv._.find((cmd) => /^(\w+:)?shell$/.test(cmd))) {
|
|
123
123
|
return $firebase('functions:shell');
|
|
124
124
|
}
|
|
125
125
|
if (argv._.find((cmd) => /^(\w+:)?logs?$/.test(cmd))) {
|
|
@@ -216,7 +216,7 @@ Finish by saving the following secrets to your GitHub repository:
|
|
|
216
216
|
return prepareCodebases();
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
if (argv._.includes('dev') || !argv._.length) {
|
|
219
|
+
if (argv._.includes('dev') || argv._.includes('start') || !argv._.length) {
|
|
220
220
|
await prepareCodebases(true);
|
|
221
221
|
const prefix = joinPath(pwd, 'functions/ssr');
|
|
222
222
|
// https://docs.astro.build/en/reference/cli-reference/#astro-dev
|