Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow 2.0.0-beta's to use current templates.
For a few reasons the `semver.satisfies` function does not match prelease versions in the same way as we want (it does make sense though). See https://github.com/npm/node-semver#prerelease-tags. This PR switches over to use the simpler `gt`/`lt` methods which behaves much more like what we need with prerelease versions. A few examples using `semver.lt`: ``` > semver.lt('1.12.0-beta.1', '1.13.0') true > semver.lt('1.13.0-beta.1', '1.13.0') true > semver.lt('1.12.0', '1.13.0-beta.1') true > semver.lt('2.0.0', '1.13.0-beta.1') false > semver.lt('1.13.0', '1.13.0-beta.1') false > semver.lt('1.13.0-beta.1', '1.13.0-beta.1') false ```
- Loading branch information