@cloudcommerce/cli 0.0.38 → 0.0.41

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,5 +1,5 @@
1
- @cloudcommerce/cli:build: cache hit, replaying output 9aad0748cced63bf
2
- @cloudcommerce/cli:build: 
3
- @cloudcommerce/cli:build: > @cloudcommerce/cli@0.0.37 build /home/leo/code/ecomplus/cloud-commerce/packages/cli
4
- @cloudcommerce/cli:build: > sh ../../scripts/build-lib.sh
5
- @cloudcommerce/cli:build: 
1
+ @cloudcommerce/cli:build: cache hit, replaying output f7b5a8536a252ed2
2
+ @cloudcommerce/cli:build: 
3
+ @cloudcommerce/cli:build: > @cloudcommerce/cli@0.0.40 build /home/leo/code/ecomplus/cloud-commerce/packages/cli
4
+ @cloudcommerce/cli:build: > sh ../../scripts/build-lib.sh
5
+ @cloudcommerce/cli:build: 
package/lib/build.js CHANGED
@@ -6,7 +6,7 @@ const copyFunctionsConfig = async () => {
6
6
  const filesToCopy = ['.env', 'config.json'];
7
7
  const dirents = await fs.readdir(functionsDir, { withFileTypes: true });
8
8
  for (let i = 0; i < dirents.length; i++) {
9
- if (dirents[i].isDirectory()) {
9
+ if (dirents[i].isDirectory() && dirents[i].name.charAt(0) !== '.') {
10
10
  for (let ii = 0; ii < filesToCopy.length; ii++) {
11
11
  // eslint-disable-next-line no-await-in-loop
12
12
  await fs.copy(path.join(functionsDir, filesToCopy[ii]), path.join(functionsDir, dirents[i].name, filesToCopy[ii]));
package/lib/index.js CHANGED
@@ -46,6 +46,7 @@ export default async () => {
46
46
  return $`firebase --project=${projectId} ${cmd}${options}`;
47
47
  };
48
48
  if (argv._.includes('serve')) {
49
+ await build();
49
50
  return $firebase('emulators:start').catch(async (err) => {
50
51
  await echo`
51
52
  Try killing open emulators with:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.0.38",
4
+ "version": "0.0.41",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/cli#readme",
25
25
  "dependencies": {
26
- "@cloudcommerce/api": "0.0.38",
26
+ "@cloudcommerce/api": "0.0.41",
27
27
  "md5": "^2.3.0",
28
28
  "zx": "^7.0.7"
29
29
  },
package/src/build.ts CHANGED
@@ -6,7 +6,7 @@ const copyFunctionsConfig = async () => {
6
6
  const filesToCopy = ['.env', 'config.json'];
7
7
  const dirents = await fs.readdir(functionsDir, { withFileTypes: true });
8
8
  for (let i = 0; i < dirents.length; i++) {
9
- if (dirents[i].isDirectory()) {
9
+ if (dirents[i].isDirectory() && dirents[i].name.charAt(0) !== '.') {
10
10
  for (let ii = 0; ii < filesToCopy.length; ii++) {
11
11
  // eslint-disable-next-line no-await-in-loop
12
12
  await fs.copy(
package/src/index.ts CHANGED
@@ -60,6 +60,7 @@ export default async () => {
60
60
  };
61
61
 
62
62
  if (argv._.includes('serve')) {
63
+ await build();
63
64
  return $firebase('emulators:start').catch(async (err: any) => {
64
65
  await echo`
65
66
  Try killing open emulators with: