Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[exp] Version bump to bust update cache when ahead of published. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
anp authored Nov 10, 2016
1 parent 9e77bf9 commit 0623a6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev/exp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exp",
"version": "0.27.0",
"version": "0.27.1",
"description": "The command-line tool for creating and publishing Exponent apps",
"preferGlobal": true,
"main": "build/exp.js",
Expand Down
5 changes: 5 additions & 0 deletions dev/exp/src/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ async function checkForExpUpdateAsync() {
latest = await updatesObject().getAsync('latestVersionExp', current);
}

if (semver.compare(current, latest) === 1) {
// if the current version is ahead of npm version, we should explicitly check again (bypassing cache)
latest = await fetchAndWriteLatestExpVersionAsync();
}

var state;
switch (semver.compare(current, latest)) {
case -1:
Expand Down

0 comments on commit 0623a6c

Please sign in to comment.