@cloudcommerce/cli 0.0.38 → 0.0.39
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 +5 -5
- package/lib/build.js +1 -1
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/src/build.ts +1 -1
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[33m@cloudcommerce/cli:build[0m: cache hit, replaying output [2m6a2d3acf1277c4bc[0m
|
|
2
|
+
[33m@cloudcommerce/cli:build: [0m
|
|
3
|
+
[33m@cloudcommerce/cli:build: [0m> @cloudcommerce/cli@0.0.38 build /home/leo/code/ecomplus/cloud-commerce/packages/cli
|
|
4
|
+
[33m@cloudcommerce/cli:build: [0m> sh ../../scripts/build-lib.sh
|
|
5
|
+
[33m@cloudcommerce/cli:build: [0m
|
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.
|
|
4
|
+
"version": "0.0.39",
|
|
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.
|
|
26
|
+
"@cloudcommerce/api": "0.0.39",
|
|
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(
|