Skip to content

Commit 7fac73a

Browse files
committed
bug fix and version update
1 parent 461c662 commit 7fac73a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pythagora",
3-
"version": "0.0.52",
3+
"version": "0.0.55",
44
"author": {
55
"name": "Zvonimir Sabljic",
66
"email": "[email protected]"

src/helpers/starting.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ function getPythagoraVersion(pythagora) {
4949
fs.readFileSync(filePath, "utf-8")
5050
).dependencies;
5151

52-
if(dependencies.pythagora) pythagora.version = dependencies.pythagora;
53-
if(dependencies['@pythagora.io/pythagora-dev']) pythagora.devVersion = dependencies['@pythagora.io/pythagora-dev'];
52+
if (!dependencies) return
53+
if (dependencies.pythagora) pythagora.version = dependencies.pythagora;
54+
if (dependencies['@pythagora.io/pythagora-dev']) pythagora.devVersion = dependencies['@pythagora.io/pythagora-dev'];
5455
}
5556
});
5657
};

0 commit comments

Comments
 (0)