@cmflow/cli 2.0.4 → 2.0.5

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/cli",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "An awesome Git Flow",
5
5
  "author": "camfou",
6
6
  "license": "MIT",
@@ -106,7 +106,7 @@ export function getConfig() {
106
106
  PROJECT_NAME: PROJECT_NAME || projectName,
107
107
  HAS_YARN: hasYarn(),
108
108
  IS_YARN_BERRY,
109
- HAS_LERNA: pkg.dependencies.lerna || pkg.devDependencies.lerna,
109
+ HAS_LERNA: (pkg.dependencies && pkg.dependencies.lerna) || (pkg.devDependencies && pkg.devDependencies.lerna),
110
110
  CI_SKIP: "[ci skip]",
111
111
  RELEASE_CANDIDATE_TAG: "[MEP]",
112
112
  ORIGIN: "origin",
@@ -5,7 +5,8 @@ export function getPackageJson() {
5
5
  const content = fs.readFileSync(`${process.cwd()}/package.json`, { encoding: "utf8" });
6
6
 
7
7
  return JSON.parse(content);
8
- } catch {
8
+ } catch (error) {
9
+ console.error("Error while loading package.json", error);
9
10
  return {
10
11
  name: "@clubmed/root"
11
12
  };