Add semver dep to package.json.