@commercetools-frontend/application-cli 1.0.0 → 1.0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commercetools",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@commercetools-frontend/application-config": "21.
|
|
23
|
+
"@commercetools-frontend/application-config": "21.3.4",
|
|
24
24
|
"@manypkg/find-root": "1.1.0",
|
|
25
25
|
"@manypkg/get-packages": "1.1.3",
|
|
26
26
|
"cosmiconfig": "7.0.1",
|
|
27
|
-
"dotenv": "
|
|
28
|
-
"execa": "
|
|
27
|
+
"dotenv": "16.0.0",
|
|
28
|
+
"execa": "6.1.0",
|
|
29
29
|
"listr": "0.14.3",
|
|
30
30
|
"listr-verbose-renderer": "0.6.0",
|
|
31
31
|
"lodash.lowerfirst": "4.3.1",
|
|
32
32
|
"mri": "1.2.0",
|
|
33
33
|
"node-fetch": "2.6.7",
|
|
34
|
-
"prettier": "2.
|
|
34
|
+
"prettier": "2.6.2",
|
|
35
35
|
"prompts": "2.4.2",
|
|
36
36
|
"rcfile": "1.0.3"
|
|
37
37
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import Listr from 'listr';
|
|
4
|
-
import execa from 'execa';
|
|
4
|
+
import { execa } from 'execa';
|
|
5
5
|
import { cosmiconfig } from 'cosmiconfig';
|
|
6
6
|
import { findRootSync } from '@manypkg/find-root';
|
|
7
7
|
import ListrVerboseRenderer from 'listr-verbose-renderer';
|
|
@@ -66,18 +66,8 @@ const mapApplicationMenuConfigToGraqhQLMenuJson = (config) => {
|
|
|
66
66
|
actionRights: menuLinks.actionRights ?? null,
|
|
67
67
|
dataFences: menuLinks.dataFences ?? null,
|
|
68
68
|
submenu: menuLinks.submenuLinks.map((submenuLink) => ({
|
|
69
|
-
key:
|
|
70
|
-
|
|
71
|
-
// to the entry point URI path.
|
|
72
|
-
// However, when rendering the link, we need to provide the full uri path.
|
|
73
|
-
// Special case when the value is `/`: it means that the link is supposed to be
|
|
74
|
-
// treated the same as the entry point uri path. In this case, the return value
|
|
75
|
-
// should not contain any unnecessary trailing slash and therefore we return the
|
|
76
|
-
// main value `entryPointUriPath`.
|
|
77
|
-
uriPath:
|
|
78
|
-
submenuLink.uriPath === '/'
|
|
79
|
-
? entryPointUriPath
|
|
80
|
-
: `${entryPointUriPath}/${submenuLink.uriPath}`,
|
|
69
|
+
key: submenuLink.uriPath.replace('/', '-'),
|
|
70
|
+
uriPath: submenuLink.uriPath,
|
|
81
71
|
labelAllLocales: mapLabelAllLocalesWithDefaults(
|
|
82
72
|
submenuLink.labelAllLocales,
|
|
83
73
|
submenuLink.defaultLabel
|