@commercetools-frontend/application-cli 2.1.0 → 2.1.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.
|
@@ -670,15 +670,6 @@ const mapApplicationMenuConfigToGraqhQLMenuJson = config => {
|
|
|
670
670
|
shouldRenderDivider: menuLinks.shouldRenderDivider ?? false
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
|
|
674
|
-
// During the migration to the Naming Convention Record for Cloud Environments
|
|
675
|
-
// we need to gracefully use the non-compliant and compliant environment names
|
|
676
|
-
// for staging to avoid a breaking release of the CLI.
|
|
677
|
-
const doesCloudEnvironmentExist = _ref => {
|
|
678
|
-
let dotenvPath = _ref.dotenvPath,
|
|
679
|
-
cloudEnvironment = _ref.cloudEnvironment;
|
|
680
|
-
return fs__default$1["default"].existsSync(path__default["default"].join(dotenvPath ?? '', `.env.${cloudEnvironment}`));
|
|
681
|
-
};
|
|
682
673
|
async function command$2(cliFlags, cwd) {
|
|
683
674
|
const applicationDirectory = getApplicationDirectory(cwd);
|
|
684
675
|
const monorepoRoot = findRoot.findRootSync(cwd);
|
|
@@ -686,11 +677,7 @@ async function command$2(cliFlags, cwd) {
|
|
|
686
677
|
|
|
687
678
|
// The env itself is not important for the menu. However, the application config
|
|
688
679
|
// uses environment placeholders and therefore we need to provide the variables for it.
|
|
689
|
-
|
|
690
|
-
const cloudEnvironment = doesCloudEnvironmentExist({
|
|
691
|
-
dotenvPath,
|
|
692
|
-
cloudEnvironment: storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1']
|
|
693
|
-
}) ? storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1'] : 'ctp-gcp-staging';
|
|
680
|
+
const cloudEnvironment = storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1'];
|
|
694
681
|
const processEnv = _objectSpread$1(_objectSpread$1({}, loadDotenvFiles({
|
|
695
682
|
dotenvPath,
|
|
696
683
|
cloudEnvironment
|
|
@@ -870,7 +857,7 @@ async function command(cliFlags) {
|
|
|
870
857
|
|
|
871
858
|
var pkgJson = {
|
|
872
859
|
name: "@commercetools-frontend/application-cli",
|
|
873
|
-
version: "2.1.
|
|
860
|
+
version: "2.1.1",
|
|
874
861
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
875
862
|
keywords: [
|
|
876
863
|
"commercetools",
|
|
@@ -895,9 +882,9 @@ var pkgJson = {
|
|
|
895
882
|
"@babel/core": "^7.22.11",
|
|
896
883
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
897
884
|
"@babel/runtime": "^7.21.0",
|
|
898
|
-
"@commercetools-frontend/application-config": "22.
|
|
899
|
-
"@commercetools-frontend/constants": "22.
|
|
900
|
-
"@commercetools-frontend/l10n": "22.
|
|
885
|
+
"@commercetools-frontend/application-config": "22.17.0",
|
|
886
|
+
"@commercetools-frontend/constants": "22.17.0",
|
|
887
|
+
"@commercetools-frontend/l10n": "22.17.0",
|
|
901
888
|
"@manypkg/find-root": "2.2.1",
|
|
902
889
|
cac: "^6.7.14",
|
|
903
890
|
cosmiconfig: "9.0.0",
|
|
@@ -670,15 +670,6 @@ const mapApplicationMenuConfigToGraqhQLMenuJson = config => {
|
|
|
670
670
|
shouldRenderDivider: menuLinks.shouldRenderDivider ?? false
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
|
|
674
|
-
// During the migration to the Naming Convention Record for Cloud Environments
|
|
675
|
-
// we need to gracefully use the non-compliant and compliant environment names
|
|
676
|
-
// for staging to avoid a breaking release of the CLI.
|
|
677
|
-
const doesCloudEnvironmentExist = _ref => {
|
|
678
|
-
let dotenvPath = _ref.dotenvPath,
|
|
679
|
-
cloudEnvironment = _ref.cloudEnvironment;
|
|
680
|
-
return fs__default$1["default"].existsSync(path__default["default"].join(dotenvPath ?? '', `.env.${cloudEnvironment}`));
|
|
681
|
-
};
|
|
682
673
|
async function command$2(cliFlags, cwd) {
|
|
683
674
|
const applicationDirectory = getApplicationDirectory(cwd);
|
|
684
675
|
const monorepoRoot = findRoot.findRootSync(cwd);
|
|
@@ -686,11 +677,7 @@ async function command$2(cliFlags, cwd) {
|
|
|
686
677
|
|
|
687
678
|
// The env itself is not important for the menu. However, the application config
|
|
688
679
|
// uses environment placeholders and therefore we need to provide the variables for it.
|
|
689
|
-
|
|
690
|
-
const cloudEnvironment = doesCloudEnvironmentExist({
|
|
691
|
-
dotenvPath,
|
|
692
|
-
cloudEnvironment: storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1']
|
|
693
|
-
}) ? storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1'] : 'ctp-gcp-staging';
|
|
680
|
+
const cloudEnvironment = storageBucketsConfig.clusterContexts['ctp_staging_gcp_europe-west1_v1'];
|
|
694
681
|
const processEnv = _objectSpread$1(_objectSpread$1({}, loadDotenvFiles({
|
|
695
682
|
dotenvPath,
|
|
696
683
|
cloudEnvironment
|
|
@@ -870,7 +857,7 @@ async function command(cliFlags) {
|
|
|
870
857
|
|
|
871
858
|
var pkgJson = {
|
|
872
859
|
name: "@commercetools-frontend/application-cli",
|
|
873
|
-
version: "2.1.
|
|
860
|
+
version: "2.1.1",
|
|
874
861
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
875
862
|
keywords: [
|
|
876
863
|
"commercetools",
|
|
@@ -895,9 +882,9 @@ var pkgJson = {
|
|
|
895
882
|
"@babel/core": "^7.22.11",
|
|
896
883
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
897
884
|
"@babel/runtime": "^7.21.0",
|
|
898
|
-
"@commercetools-frontend/application-config": "22.
|
|
899
|
-
"@commercetools-frontend/constants": "22.
|
|
900
|
-
"@commercetools-frontend/l10n": "22.
|
|
885
|
+
"@commercetools-frontend/application-config": "22.17.0",
|
|
886
|
+
"@commercetools-frontend/constants": "22.17.0",
|
|
887
|
+
"@commercetools-frontend/l10n": "22.17.0",
|
|
901
888
|
"@manypkg/find-root": "2.2.1",
|
|
902
889
|
cac: "^6.7.14",
|
|
903
890
|
cosmiconfig: "9.0.0",
|
|
@@ -641,15 +641,6 @@ const mapApplicationMenuConfigToGraqhQLMenuJson = config => {
|
|
|
641
641
|
shouldRenderDivider: menuLinks.shouldRenderDivider ?? false
|
|
642
642
|
};
|
|
643
643
|
};
|
|
644
|
-
|
|
645
|
-
// During the migration to the Naming Convention Record for Cloud Environments
|
|
646
|
-
// we need to gracefully use the non-compliant and compliant environment names
|
|
647
|
-
// for staging to avoid a breaking release of the CLI.
|
|
648
|
-
const doesCloudEnvironmentExist = _ref => {
|
|
649
|
-
let dotenvPath = _ref.dotenvPath,
|
|
650
|
-
cloudEnvironment = _ref.cloudEnvironment;
|
|
651
|
-
return fs$1.existsSync(path.join(dotenvPath ?? '', `.env.${cloudEnvironment}`));
|
|
652
|
-
};
|
|
653
644
|
async function command$2(cliFlags, cwd) {
|
|
654
645
|
const applicationDirectory = getApplicationDirectory(cwd);
|
|
655
646
|
const monorepoRoot = findRootSync(cwd);
|
|
@@ -657,11 +648,7 @@ async function command$2(cliFlags, cwd) {
|
|
|
657
648
|
|
|
658
649
|
// The env itself is not important for the menu. However, the application config
|
|
659
650
|
// uses environment placeholders and therefore we need to provide the variables for it.
|
|
660
|
-
|
|
661
|
-
const cloudEnvironment = doesCloudEnvironmentExist({
|
|
662
|
-
dotenvPath,
|
|
663
|
-
cloudEnvironment: clusterContexts['ctp_staging_gcp_europe-west1_v1']
|
|
664
|
-
}) ? clusterContexts['ctp_staging_gcp_europe-west1_v1'] : 'ctp-gcp-staging';
|
|
651
|
+
const cloudEnvironment = clusterContexts['ctp_staging_gcp_europe-west1_v1'];
|
|
665
652
|
const processEnv = _objectSpread$1(_objectSpread$1({}, loadDotenvFiles({
|
|
666
653
|
dotenvPath,
|
|
667
654
|
cloudEnvironment
|
|
@@ -841,7 +828,7 @@ async function command(cliFlags) {
|
|
|
841
828
|
|
|
842
829
|
var pkgJson = {
|
|
843
830
|
name: "@commercetools-frontend/application-cli",
|
|
844
|
-
version: "2.1.
|
|
831
|
+
version: "2.1.1",
|
|
845
832
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
846
833
|
keywords: [
|
|
847
834
|
"commercetools",
|
|
@@ -866,9 +853,9 @@ var pkgJson = {
|
|
|
866
853
|
"@babel/core": "^7.22.11",
|
|
867
854
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
868
855
|
"@babel/runtime": "^7.21.0",
|
|
869
|
-
"@commercetools-frontend/application-config": "22.
|
|
870
|
-
"@commercetools-frontend/constants": "22.
|
|
871
|
-
"@commercetools-frontend/l10n": "22.
|
|
856
|
+
"@commercetools-frontend/application-config": "22.17.0",
|
|
857
|
+
"@commercetools-frontend/constants": "22.17.0",
|
|
858
|
+
"@commercetools-frontend/l10n": "22.17.0",
|
|
872
859
|
"@manypkg/find-root": "2.2.1",
|
|
873
860
|
cac: "^6.7.14",
|
|
874
861
|
cosmiconfig: "9.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commercetools",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@babel/core": "^7.22.11",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
24
24
|
"@babel/runtime": "^7.21.0",
|
|
25
|
-
"@commercetools-frontend/application-config": "22.
|
|
26
|
-
"@commercetools-frontend/constants": "22.
|
|
27
|
-
"@commercetools-frontend/l10n": "22.
|
|
25
|
+
"@commercetools-frontend/application-config": "22.17.0",
|
|
26
|
+
"@commercetools-frontend/constants": "22.17.0",
|
|
27
|
+
"@commercetools-frontend/l10n": "22.17.0",
|
|
28
28
|
"@manypkg/find-root": "2.2.1",
|
|
29
29
|
"cac": "^6.7.14",
|
|
30
30
|
"cosmiconfig": "9.0.0",
|