Skip to content

Commit

Permalink
Added dev path (#99)
Browse files Browse the repository at this point in the history
* Added dev path
  • Loading branch information
DaveDev13 authored and artem-malko committed Feb 3, 2019
1 parent 96d0856 commit 1d79255
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/command-actions/utils/update-project/tars-config-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ module.exports = function updateTarsConfig(params) {
);
}

if (semver.cmp(params.downloadedVersion, '>=', '1.11.10') && !params.currentTarsConfig.devPath) {
newTarsConfig = Object.assign(
{},
newTarsConfig,
{
devPath: './dev/'
}
);
}

return newTarsConfig;
};

2 changes: 1 addition & 1 deletion 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": "tars-cli",
"version": "1.10.9",
"version": "1.10.10",
"engines": {
"node": "^6.x.x"
},
Expand Down

0 comments on commit 1d79255

Please sign in to comment.