@commercetools-frontend/application-cli 1.1.0 → 1.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.
package/package.json CHANGED
@@ -1,15 +1,12 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Internal CLI to manage Merchant Center application deployments across various environments.",
5
5
  "keywords": [
6
6
  "commercetools",
7
7
  "cli",
8
8
  "custom-application"
9
9
  ],
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
10
  "license": "MIT",
14
11
  "type": "module",
15
12
  "bin": "./src/bin/cli.js",
@@ -20,23 +17,21 @@
20
17
  "README.md"
21
18
  ],
22
19
  "dependencies": {
23
- "@commercetools-frontend/application-config": "21.21.2",
24
- "@manypkg/find-root": "1.1.0",
25
- "@manypkg/get-packages": "1.1.3",
26
- "cosmiconfig": "8.0.0",
20
+ "@commercetools-frontend/application-config": "21.23.8",
21
+ "@manypkg/find-root": "2.1.0",
22
+ "cosmiconfig": "8.1.0",
27
23
  "dotenv": "16.0.3",
28
24
  "execa": "6.1.0",
29
25
  "listr": "0.14.3",
30
26
  "listr-verbose-renderer": "0.6.0",
31
- "lodash.lowerfirst": "4.3.1",
32
27
  "mri": "1.2.0",
33
- "node-fetch": "2.6.7",
34
- "prettier": "2.8.1",
35
- "prompts": "2.4.2",
36
- "rcfile": "1.0.3"
28
+ "node-fetch": "2.6.9"
37
29
  },
38
30
  "engines": {
39
31
  "node": ">=14",
40
32
  "npm": ">=6"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
41
36
  }
42
37
  }
@@ -225,12 +225,13 @@ async function command(cliFlags, cwd) {
225
225
  assetsPath = applicationDirectory;
226
226
  }
227
227
 
228
+ const monorepoRoot = findRootSync(cwd);
228
229
  const paths = {
229
230
  publicAssetsPath: resolveInApplication('public', cwd),
230
231
  deploymentsPath: resolveInApplication('deployments', cwd),
231
232
  dotenvPath:
232
233
  cliFlags['dotenv-folder'] &&
233
- path.join(findRootSync(cwd), cliFlags['dotenv-folder']),
234
+ path.join(monorepoRoot.rootDir, cliFlags['dotenv-folder']),
234
235
  assetsPath,
235
236
  };
236
237
 
@@ -84,10 +84,10 @@ const mapApplicationMenuConfigToGraqhQLMenuJson = (config) => {
84
84
 
85
85
  async function command(cliFlags, cwd) {
86
86
  const applicationDirectory = getApplicationDirectory(cwd);
87
-
87
+ const monorepoRoot = findRootSync(cwd);
88
88
  const dotenvPath =
89
89
  cliFlags['dotenv-folder'] &&
90
- path.join(findRootSync(cwd), cliFlags['dotenv-folder']);
90
+ path.join(monorepoRoot.rootDir, cliFlags['dotenv-folder']);
91
91
 
92
92
  const processEnv = {
93
93
  ...loadDotenvFiles({