@cloudcommerce/cli 2.20.5 → 2.20.6
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/lib/setup-gcloud.js +3 -0
- package/lib/setup-gh.js +1 -0
- package/package.json +3 -3
package/lib/setup-gcloud.js
CHANGED
|
@@ -38,6 +38,7 @@ const getGcpAccessToken = async () => {
|
|
|
38
38
|
return question('Google Cloud access token: ');
|
|
39
39
|
};
|
|
40
40
|
const checkServiceAccountExists = async (projectId) => {
|
|
41
|
+
$.verbose = true;
|
|
41
42
|
let hasServiceAccount;
|
|
42
43
|
try {
|
|
43
44
|
if (!gcpAccessToken) {
|
|
@@ -56,6 +57,7 @@ const checkServiceAccountExists = async (projectId) => {
|
|
|
56
57
|
return hasServiceAccount;
|
|
57
58
|
};
|
|
58
59
|
const siginGcloudAndSetIAM = async (projectId, pwd) => {
|
|
60
|
+
$.verbose = true;
|
|
59
61
|
let hasGcloud;
|
|
60
62
|
try {
|
|
61
63
|
hasGcloud = Boolean(await $`command -v gcloud`);
|
|
@@ -171,6 +173,7 @@ const siginGcloudAndSetIAM = async (projectId, pwd) => {
|
|
|
171
173
|
return null;
|
|
172
174
|
};
|
|
173
175
|
const createServiceAccountKey = async (projectId, pwd) => {
|
|
176
|
+
$.verbose = true;
|
|
174
177
|
try {
|
|
175
178
|
const pathFileKey = path.join(pwd, '.cloudcommerce', 'serviceAccountKey.json');
|
|
176
179
|
if (!gcpAccessToken) {
|
package/lib/setup-gh.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.20.
|
|
4
|
+
"version": "2.20.6",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce CLI tools",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cloudcommerce": "./bin/run.mjs"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"libsodium-wrappers": "^0.7.13",
|
|
36
36
|
"md5": "^2.3.0",
|
|
37
37
|
"typescript": "~5.4.5",
|
|
38
|
-
"zx": "^
|
|
39
|
-
"@cloudcommerce/api": "2.20.
|
|
38
|
+
"zx": "^8.1.2",
|
|
39
|
+
"@cloudcommerce/api": "2.20.6"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "bash ../../scripts/build-lib.sh"
|