New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9: fix prerelease -> prerelease upgrades + dep updates #784
Conversation
vikaspotluri123
commented
Aug 15, 2018
- allow upgrades from prerelease -> prerelease (i.e. Ghost 2.0.0-rc.1 -> Ghost 2.0.0-rc.2)
- Dependency upgrades
lib/utils/version-from-zip.js
Outdated
if (err.message.match(/No valid versions found/) && semver.major(currentVersion) !== semver.major(pkg.version)) { | ||
// CASE: you are on v2 prerelease, and want to upgrade to the next prerelease | ||
if (err.message.match(/No valid versions found/) && | ||
(semver.major(currentVersion) !== semver.major(pkg.version) || semver.prerelease(pkg.version)) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
I'm not sure what changed in eslint to require only the bin folder to be globbed 😕 I tested that the other folders were being linted by adding a syntax error to a file, and everything else is being picked up properly 🤷♂️ |
You have jumped to a major version of eslint? |
Yes, since the migration guide didn't seem to have any changes that would impact the CLI |
no issue The following packages have (partially) been held back: got - got v9 drops support for node v6 so we have to stay on got v8 rxjs - had migration issues for us in past upgrade attempts cli-table3 - the release on github is 0.5.0; not upgrading to be safe yargs - only upgraded semver minor since 1.9 is an important release validator - not upgrading for now
no issue - Updated edgecase logic to allow eg. Ghost 2.0.0-rc.1 to Ghost 2.0.0-rc.2 - Added tests to ensure e.g. Ghost 2.0.0-rc.1 to Ghost 2.0.0. - Previously, attempting to update ghost when in a prerelease could cause the CLI to incorrectly determine your instance is up to date
no issue eslint was complaining that no files matched bin, so updated the command to use the bin/* glob