@commercetools-frontend/deployment-cli 2.0.4 → 2.0.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.
|
@@ -51,7 +51,7 @@ var pRetry__default = /*#__PURE__*/_interopDefault(pRetry);
|
|
|
51
51
|
|
|
52
52
|
var pkgJson = {
|
|
53
53
|
name: "@commercetools-frontend/deployment-cli",
|
|
54
|
-
version: "2.0.
|
|
54
|
+
version: "2.0.6",
|
|
55
55
|
description: "CLI to manage Custom Applications deployments in Google Storage.",
|
|
56
56
|
keywords: [
|
|
57
57
|
"commercetools",
|
|
@@ -83,9 +83,9 @@ var pkgJson = {
|
|
|
83
83
|
prompts: "2.4.2"
|
|
84
84
|
},
|
|
85
85
|
devDependencies: {
|
|
86
|
-
"@tsconfig/node20": "20.1.
|
|
86
|
+
"@tsconfig/node20": "20.1.6",
|
|
87
87
|
"@types/lodash": "^4.14.198",
|
|
88
|
-
"@types/node": "22.
|
|
88
|
+
"@types/node": "22.18.8",
|
|
89
89
|
"@types/prompts": "2.4.9",
|
|
90
90
|
msw: "1.3.5",
|
|
91
91
|
typescript: "5.2.2"
|
|
@@ -435,11 +435,11 @@ function isNonScheduledPipeline(pipeline) {
|
|
|
435
435
|
function isNonErroredPipeline(pipeline) {
|
|
436
436
|
return pipeline.state !== 'errored';
|
|
437
437
|
}
|
|
438
|
-
async function waitForDeploymentJobNumber(
|
|
439
|
-
let workflowId =
|
|
440
|
-
deploymentJob =
|
|
441
|
-
circleCiApis =
|
|
442
|
-
let debug =
|
|
438
|
+
async function waitForDeploymentJobNumber(_ref0, _ref1) {
|
|
439
|
+
let workflowId = _ref0.workflowId,
|
|
440
|
+
deploymentJob = _ref0.deploymentJob,
|
|
441
|
+
circleCiApis = _ref0.circleCiApis;
|
|
442
|
+
let debug = _ref1.debug;
|
|
443
443
|
const fetchDeploymentJobNumber = async () => {
|
|
444
444
|
var _context6;
|
|
445
445
|
const jobsRequest = circleCiApis.jobs({
|
|
@@ -582,7 +582,7 @@ async function run() {
|
|
|
582
582
|
});
|
|
583
583
|
|
|
584
584
|
// Command: Approve
|
|
585
|
-
commander.program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').
|
|
585
|
+
commander.program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').option('--approval-job [string]', '(optional) The name of the approval job to approve a deployment with.').option('--deployment-job [string]', '(optional) The name of the deployment job triggered by the approval job. If passed the CLI will print a URL to the deployment triggered on CircleCI.').option('--deployment [string]', '(optional) The name of a deployment configured in the configuration file.').option('--build-revision [git-sha]', '(optional) The git commit SHA that needs to be deployed. If not specified, the last successful pipeline is used.').option('--branch [string]', '(optional) The git branch to deploy from. If not specified.', 'main').option('--yes', '(optional) Skip all confirmation prompts. Useful in Continuous integration (CI) to automatically answer confirmation questions.', false).action(async options => {
|
|
586
586
|
const globalOptions = commander.program.opts();
|
|
587
587
|
if (globalOptions.dryRun) {
|
|
588
588
|
console.log(`🙊 Do not worry. This is a dry run!`);
|
|
@@ -51,7 +51,7 @@ var pRetry__default = /*#__PURE__*/_interopDefault(pRetry);
|
|
|
51
51
|
|
|
52
52
|
var pkgJson = {
|
|
53
53
|
name: "@commercetools-frontend/deployment-cli",
|
|
54
|
-
version: "2.0.
|
|
54
|
+
version: "2.0.6",
|
|
55
55
|
description: "CLI to manage Custom Applications deployments in Google Storage.",
|
|
56
56
|
keywords: [
|
|
57
57
|
"commercetools",
|
|
@@ -83,9 +83,9 @@ var pkgJson = {
|
|
|
83
83
|
prompts: "2.4.2"
|
|
84
84
|
},
|
|
85
85
|
devDependencies: {
|
|
86
|
-
"@tsconfig/node20": "20.1.
|
|
86
|
+
"@tsconfig/node20": "20.1.6",
|
|
87
87
|
"@types/lodash": "^4.14.198",
|
|
88
|
-
"@types/node": "22.
|
|
88
|
+
"@types/node": "22.18.8",
|
|
89
89
|
"@types/prompts": "2.4.9",
|
|
90
90
|
msw: "1.3.5",
|
|
91
91
|
typescript: "5.2.2"
|
|
@@ -435,11 +435,11 @@ function isNonScheduledPipeline(pipeline) {
|
|
|
435
435
|
function isNonErroredPipeline(pipeline) {
|
|
436
436
|
return pipeline.state !== 'errored';
|
|
437
437
|
}
|
|
438
|
-
async function waitForDeploymentJobNumber(
|
|
439
|
-
let workflowId =
|
|
440
|
-
deploymentJob =
|
|
441
|
-
circleCiApis =
|
|
442
|
-
let debug =
|
|
438
|
+
async function waitForDeploymentJobNumber(_ref0, _ref1) {
|
|
439
|
+
let workflowId = _ref0.workflowId,
|
|
440
|
+
deploymentJob = _ref0.deploymentJob,
|
|
441
|
+
circleCiApis = _ref0.circleCiApis;
|
|
442
|
+
let debug = _ref1.debug;
|
|
443
443
|
const fetchDeploymentJobNumber = async () => {
|
|
444
444
|
var _context6;
|
|
445
445
|
const jobsRequest = circleCiApis.jobs({
|
|
@@ -582,7 +582,7 @@ async function run() {
|
|
|
582
582
|
});
|
|
583
583
|
|
|
584
584
|
// Command: Approve
|
|
585
|
-
commander.program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').
|
|
585
|
+
commander.program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').option('--approval-job [string]', '(optional) The name of the approval job to approve a deployment with.').option('--deployment-job [string]', '(optional) The name of the deployment job triggered by the approval job. If passed the CLI will print a URL to the deployment triggered on CircleCI.').option('--deployment [string]', '(optional) The name of a deployment configured in the configuration file.').option('--build-revision [git-sha]', '(optional) The git commit SHA that needs to be deployed. If not specified, the last successful pipeline is used.').option('--branch [string]', '(optional) The git branch to deploy from. If not specified.', 'main').option('--yes', '(optional) Skip all confirmation prompts. Useful in Continuous integration (CI) to automatically answer confirmation questions.', false).action(async options => {
|
|
586
586
|
const globalOptions = commander.program.opts();
|
|
587
587
|
if (globalOptions.dryRun) {
|
|
588
588
|
console.log(`🙊 Do not worry. This is a dry run!`);
|
|
@@ -25,7 +25,7 @@ import pRetry from 'p-retry';
|
|
|
25
25
|
|
|
26
26
|
var pkgJson = {
|
|
27
27
|
name: "@commercetools-frontend/deployment-cli",
|
|
28
|
-
version: "2.0.
|
|
28
|
+
version: "2.0.6",
|
|
29
29
|
description: "CLI to manage Custom Applications deployments in Google Storage.",
|
|
30
30
|
keywords: [
|
|
31
31
|
"commercetools",
|
|
@@ -57,9 +57,9 @@ var pkgJson = {
|
|
|
57
57
|
prompts: "2.4.2"
|
|
58
58
|
},
|
|
59
59
|
devDependencies: {
|
|
60
|
-
"@tsconfig/node20": "20.1.
|
|
60
|
+
"@tsconfig/node20": "20.1.6",
|
|
61
61
|
"@types/lodash": "^4.14.198",
|
|
62
|
-
"@types/node": "22.
|
|
62
|
+
"@types/node": "22.18.8",
|
|
63
63
|
"@types/prompts": "2.4.9",
|
|
64
64
|
msw: "1.3.5",
|
|
65
65
|
typescript: "5.2.2"
|
|
@@ -409,11 +409,11 @@ function isNonScheduledPipeline(pipeline) {
|
|
|
409
409
|
function isNonErroredPipeline(pipeline) {
|
|
410
410
|
return pipeline.state !== 'errored';
|
|
411
411
|
}
|
|
412
|
-
async function waitForDeploymentJobNumber(
|
|
413
|
-
let workflowId =
|
|
414
|
-
deploymentJob =
|
|
415
|
-
circleCiApis =
|
|
416
|
-
let debug =
|
|
412
|
+
async function waitForDeploymentJobNumber(_ref0, _ref1) {
|
|
413
|
+
let workflowId = _ref0.workflowId,
|
|
414
|
+
deploymentJob = _ref0.deploymentJob,
|
|
415
|
+
circleCiApis = _ref0.circleCiApis;
|
|
416
|
+
let debug = _ref1.debug;
|
|
417
417
|
const fetchDeploymentJobNumber = async () => {
|
|
418
418
|
var _context6;
|
|
419
419
|
const jobsRequest = circleCiApis.jobs({
|
|
@@ -556,7 +556,7 @@ async function run() {
|
|
|
556
556
|
});
|
|
557
557
|
|
|
558
558
|
// Command: Approve
|
|
559
|
-
program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').
|
|
559
|
+
program.command('approve').description('Approves a job and by this triggers a deployment of a component. It requires a "CIRCLE_TOKEN" environment variable (https://circleci.com/docs/2.0/managing-api-tokens/).').option('--approval-job [string]', '(optional) The name of the approval job to approve a deployment with.').option('--deployment-job [string]', '(optional) The name of the deployment job triggered by the approval job. If passed the CLI will print a URL to the deployment triggered on CircleCI.').option('--deployment [string]', '(optional) The name of a deployment configured in the configuration file.').option('--build-revision [git-sha]', '(optional) The git commit SHA that needs to be deployed. If not specified, the last successful pipeline is used.').option('--branch [string]', '(optional) The git branch to deploy from. If not specified.', 'main').option('--yes', '(optional) Skip all confirmation prompts. Useful in Continuous integration (CI) to automatically answer confirmation questions.', false).action(async options => {
|
|
560
560
|
const globalOptions = program.opts();
|
|
561
561
|
if (globalOptions.dryRun) {
|
|
562
562
|
console.log(`🙊 Do not worry. This is a dry run!`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/deployment-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "CLI to manage Custom Applications deployments in Google Storage.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commercetools",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"prompts": "2.4.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsconfig/node20": "20.1.
|
|
32
|
+
"@tsconfig/node20": "20.1.6",
|
|
33
33
|
"@types/lodash": "^4.14.198",
|
|
34
|
-
"@types/node": "22.
|
|
34
|
+
"@types/node": "22.18.8",
|
|
35
35
|
"@types/prompts": "2.4.9",
|
|
36
36
|
"msw": "1.3.5",
|
|
37
37
|
"typescript": "5.2.2"
|