Skip to content

Commit

Permalink
New version 0.0.16 Read more https://github.com/mappable-world/mappab…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Sep 18, 2023
1 parent 2593c88 commit 03d2953
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mappable-world/mappable-cli",
"version": "0.0.15",
"version": "0.0.16",
"description": "Library for encapsulating the logic of autotests and building packages mappable.world js API",
"main": "dist/index.js",
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export async function example() {
const pkg = {
version: ''
};
if (!fs.existsSync(packageFile) || !fs.statSync(packageFile).isFile()) {

if (fs.existsSync(packageFile) && fs.statSync(packageFile).isFile()) {
Object.assign(pkg, JSON.parse(fs.readFileSync(packageFile, 'utf8')));
}

Expand Down

0 comments on commit 03d2953

Please sign in to comment.