@cloudcommerce/cli 2.23.0 → 2.23.2

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.
Files changed (2) hide show
  1. package/lib/cli.js +5 -2
  2. package/package.json +2 -2
package/lib/cli.js CHANGED
@@ -43,8 +43,7 @@ if (projectId) {
43
43
  }
44
44
  }
45
45
  }
46
-
47
- export default async () => {
46
+ const run = async () => {
48
47
  const baseConfigDir = joinPath(__dirname, '..', 'config');
49
48
  await fs.copy(baseConfigDir, pwd);
50
49
  const userConfigDir = joinPath(pwd, 'conf');
@@ -103,6 +102,7 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
103
102
  return $firebase('functions:log');
104
103
  }
105
104
  if (argv._.includes('build')) {
105
+ $.verbose = true;
106
106
  return build(argv.codebase);
107
107
  }
108
108
  if (argv._.includes('deploy')) {
@@ -178,6 +178,7 @@ Finish by saving the following secrets to your GitHub repository:
178
178
  }
179
179
  if (argv._.includes('dev') || argv._.includes('start') || !argv._.length) {
180
180
  await prepareCodebases(true);
181
+ $.verbose = true;
181
182
  const prefix = joinPath(pwd, 'functions/ssr');
182
183
  // https://docs.astro.build/en/reference/cli-reference/#astro-dev
183
184
  const host = typeof argv.host === 'string' ? argv.host : '';
@@ -186,3 +187,5 @@ Finish by saving the following secrets to your GitHub repository:
186
187
  }
187
188
  return $`echo 'Hello from @cloudcommerce/cli'`;
188
189
  };
190
+
191
+ export default run;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "2.23.0",
4
+ "version": "2.23.2",
5
5
  "description": "e-com.plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -36,7 +36,7 @@
36
36
  "md5": "^2.3.0",
37
37
  "typescript": "~5.5.4",
38
38
  "zx": "^8.1.4",
39
- "@cloudcommerce/api": "2.23.0"
39
+ "@cloudcommerce/api": "2.23.2"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "bash ../../scripts/build-lib.sh"