@commercetools-frontend/application-cli 2.3.0 → 2.3.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.
@@ -514,8 +514,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
514
514
 
515
515
  set -e
516
516
 
517
- aws s3 cp \\
518
- "$(dirname "$0")/${applicationIndexOutFile}" \\
517
+ aws s3 cp "$(dirname "$0")/${applicationIndexOutFile}" \\
519
518
  "${bucketUrl}/" \\
520
519
  --content-type="text/html" \\
521
520
  --cache-control="public,max-age=0,no-transform" \\
@@ -524,14 +523,15 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
524
523
  echo "Creating version.json and uploading it to bucket ${bucketUrl}"
525
524
 
526
525
  NODE_ENV=production ${packageManagerName} application-cli create-version \\
527
- --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}/version.json \\
526
+ --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2]}/version.json \\
528
527
  --build-revision=${buildRevision} \\
529
528
  --build-number=${buildNumber} \\
530
529
  --out-file=$(dirname "$0")/version.json
531
530
 
532
- aws s3 cp \\
533
- "$(dirname "$0")/version.json" \\
531
+ aws s3 cp "$(dirname "$0")" \\
534
532
  "${bucketUrl}/" \\
533
+ --exclude "*" \\
534
+ --include "version.json" \\
535
535
  --content-type="application/json" \\
536
536
  --cache-control="public,max-age=0,no-transform" \\
537
537
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -587,9 +587,8 @@ if ${skipMenu}; then
587
587
  else
588
588
  echo "Uploading menu.json to bucket ${bucketUrl}"
589
589
 
590
- aws s3 cp \\
591
- ${assetsPath}/menu.json \\
592
- ${bucketUrl} \\
590
+ aws s3 cp ${assetsPath}/menu.json \\
591
+ "${bucketUrl}/" \\
593
592
  --content-type="application/json" \\
594
593
  --cache-control="public,max-age=0,no-transform" \\
595
594
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -1117,7 +1116,7 @@ async function command(cliFlags) {
1117
1116
 
1118
1117
  var pkgJson = {
1119
1118
  name: "@commercetools-frontend/application-cli",
1120
- version: "2.3.0",
1119
+ version: "2.3.1",
1121
1120
  description: "Internal CLI to manage Merchant Center application deployments across various environments.",
1122
1121
  keywords: [
1123
1122
  "commercetools",
@@ -1157,7 +1156,7 @@ var pkgJson = {
1157
1156
  },
1158
1157
  devDependencies: {
1159
1158
  "@tsconfig/node20": "20.1.2",
1160
- "@types/node": "20.11.30",
1159
+ "@types/node": "20.12.2",
1161
1160
  typescript: "5.2.2"
1162
1161
  },
1163
1162
  engines: {
@@ -514,8 +514,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
514
514
 
515
515
  set -e
516
516
 
517
- aws s3 cp \\
518
- "$(dirname "$0")/${applicationIndexOutFile}" \\
517
+ aws s3 cp "$(dirname "$0")/${applicationIndexOutFile}" \\
519
518
  "${bucketUrl}/" \\
520
519
  --content-type="text/html" \\
521
520
  --cache-control="public,max-age=0,no-transform" \\
@@ -524,14 +523,15 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
524
523
  echo "Creating version.json and uploading it to bucket ${bucketUrl}"
525
524
 
526
525
  NODE_ENV=production ${packageManagerName} application-cli create-version \\
527
- --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}/version.json \\
526
+ --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2]}/version.json \\
528
527
  --build-revision=${buildRevision} \\
529
528
  --build-number=${buildNumber} \\
530
529
  --out-file=$(dirname "$0")/version.json
531
530
 
532
- aws s3 cp \\
533
- "$(dirname "$0")/version.json" \\
531
+ aws s3 cp "$(dirname "$0")" \\
534
532
  "${bucketUrl}/" \\
533
+ --exclude "*" \\
534
+ --include "version.json" \\
535
535
  --content-type="application/json" \\
536
536
  --cache-control="public,max-age=0,no-transform" \\
537
537
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -587,9 +587,8 @@ if ${skipMenu}; then
587
587
  else
588
588
  echo "Uploading menu.json to bucket ${bucketUrl}"
589
589
 
590
- aws s3 cp \\
591
- ${assetsPath}/menu.json \\
592
- ${bucketUrl} \\
590
+ aws s3 cp ${assetsPath}/menu.json \\
591
+ "${bucketUrl}/" \\
593
592
  --content-type="application/json" \\
594
593
  --cache-control="public,max-age=0,no-transform" \\
595
594
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -1117,7 +1116,7 @@ async function command(cliFlags) {
1117
1116
 
1118
1117
  var pkgJson = {
1119
1118
  name: "@commercetools-frontend/application-cli",
1120
- version: "2.3.0",
1119
+ version: "2.3.1",
1121
1120
  description: "Internal CLI to manage Merchant Center application deployments across various environments.",
1122
1121
  keywords: [
1123
1122
  "commercetools",
@@ -1157,7 +1156,7 @@ var pkgJson = {
1157
1156
  },
1158
1157
  devDependencies: {
1159
1158
  "@tsconfig/node20": "20.1.2",
1160
- "@types/node": "20.11.30",
1159
+ "@types/node": "20.12.2",
1161
1160
  typescript: "5.2.2"
1162
1161
  },
1163
1162
  engines: {
@@ -485,8 +485,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
485
485
 
486
486
  set -e
487
487
 
488
- aws s3 cp \\
489
- "$(dirname "$0")/${applicationIndexOutFile}" \\
488
+ aws s3 cp "$(dirname "$0")/${applicationIndexOutFile}" \\
490
489
  "${bucketUrl}/" \\
491
490
  --content-type="text/html" \\
492
491
  --cache-control="public,max-age=0,no-transform" \\
@@ -495,14 +494,15 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
495
494
  echo "Creating version.json and uploading it to bucket ${bucketUrl}"
496
495
 
497
496
  NODE_ENV=production ${packageManagerName} application-cli create-version \\
498
- --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}/version.json \\
497
+ --version-url=${cdnUrl}/${_classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2]}/version.json \\
499
498
  --build-revision=${buildRevision} \\
500
499
  --build-number=${buildNumber} \\
501
500
  --out-file=$(dirname "$0")/version.json
502
501
 
503
- aws s3 cp \\
504
- "$(dirname "$0")/version.json" \\
502
+ aws s3 cp "$(dirname "$0")" \\
505
503
  "${bucketUrl}/" \\
504
+ --exclude "*" \\
505
+ --include "version.json" \\
506
506
  --content-type="application/json" \\
507
507
  --cache-control="public,max-age=0,no-transform" \\
508
508
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -558,9 +558,8 @@ if ${skipMenu}; then
558
558
  else
559
559
  echo "Uploading menu.json to bucket ${bucketUrl}"
560
560
 
561
- aws s3 cp \\
562
- ${assetsPath}/menu.json \\
563
- ${bucketUrl} \\
561
+ aws s3 cp ${assetsPath}/menu.json \\
562
+ "${bucketUrl}/" \\
564
563
  --content-type="application/json" \\
565
564
  --cache-control="public,max-age=0,no-transform" \\
566
565
  --profile ${_classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2]}
@@ -1088,7 +1087,7 @@ async function command(cliFlags) {
1088
1087
 
1089
1088
  var pkgJson = {
1090
1089
  name: "@commercetools-frontend/application-cli",
1091
- version: "2.3.0",
1090
+ version: "2.3.1",
1092
1091
  description: "Internal CLI to manage Merchant Center application deployments across various environments.",
1093
1092
  keywords: [
1094
1093
  "commercetools",
@@ -1128,7 +1127,7 @@ var pkgJson = {
1128
1127
  },
1129
1128
  devDependencies: {
1130
1129
  "@tsconfig/node20": "20.1.2",
1131
- "@types/node": "20.11.30",
1130
+ "@types/node": "20.12.2",
1132
1131
  typescript: "5.2.2"
1133
1132
  },
1134
1133
  engines: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-cli",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Internal CLI to manage Merchant Center application deployments across various environments.",
5
5
  "keywords": [
6
6
  "commercetools",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@tsconfig/node20": "20.1.2",
40
- "@types/node": "20.11.30",
40
+ "@types/node": "20.12.2",
41
41
  "typescript": "5.2.2"
42
42
  },
43
43
  "engines": {