@cloudcommerce/cli 0.8.7 → 0.9.1

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @cloudcommerce/cli@0.8.6 build /home/leo/code/ecomplus/cloud-commerce/packages/cli
2
+ > @cloudcommerce/cli@0.9.0 build /home/leo/code/ecomplus/cloud-commerce/packages/cli
3
3
  > bash ../../scripts/build-lib.sh
4
4
 
package/lib/build.js CHANGED
@@ -35,3 +35,5 @@ const buildCodebase = async (codebase) => {
35
35
  export default buildCodebase;
36
36
 
37
37
  export { buildCodebase, copyFunctionsConfig };
38
+
39
+ export const prepareCodebases = copyFunctionsConfig;
package/lib/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  $, argv, fs, echo, chalk,
5
5
  } from 'zx';
6
6
  import login from './login.js';
7
- import build from './build.js';
7
+ import build, { prepareCodebases } from './build.js';
8
8
  import { siginGcloudAndSetIAM, createServiceAccountKey } from './setup-gcloud.js';
9
9
  import createGhSecrets from './setup-gh.js';
10
10
 
@@ -144,7 +144,7 @@ Finish by saving the following secrets to your GitHub repository:
144
144
  `;
145
145
  }
146
146
  if (argv._.includes('dev') || !argv._.length) {
147
- await $`npm run build -- --codebase ssr`;
147
+ await prepareCodebases();
148
148
  return $`npm --prefix "${path.join(pwd, 'functions/ssr')}" run dev`;
149
149
  }
150
150
  return $`echo 'Hello from @cloudcommerce/cli'`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.8.7",
4
+ "version": "0.9.1",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -26,7 +26,7 @@
26
26
  "libsodium-wrappers": "^0.7.11",
27
27
  "md5": "^2.3.0",
28
28
  "zx": "^7.2.1",
29
- "@cloudcommerce/api": "0.8.7"
29
+ "@cloudcommerce/api": "0.9.1"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "bash ../../scripts/build-lib.sh"
package/src/build.ts CHANGED
@@ -39,3 +39,5 @@ const buildCodebase = async (codebase?: string) => {
39
39
  export default buildCodebase;
40
40
 
41
41
  export { buildCodebase, copyFunctionsConfig };
42
+
43
+ export const prepareCodebases = copyFunctionsConfig;
package/src/cli.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  chalk,
9
9
  } from 'zx';
10
10
  import login from './login';
11
- import build from './build';
11
+ import build, { prepareCodebases } from './build';
12
12
  import { siginGcloudAndSetIAM, createServiceAccountKey } from './setup-gcloud';
13
13
  import createGhSecrets from './setup-gh';
14
14
 
@@ -176,7 +176,7 @@ Finish by saving the following secrets to your GitHub repository:
176
176
  }
177
177
 
178
178
  if (argv._.includes('dev') || !argv._.length) {
179
- await $`npm run build -- --codebase ssr`;
179
+ await prepareCodebases();
180
180
  return $`npm --prefix "${path.join(pwd, 'functions/ssr')}" run dev`;
181
181
  }
182
182
  return $`echo 'Hello from @cloudcommerce/cli'`;