Proper handling for incrementing and changing the prerelease identifier
simultaneously. Ex:

  1.2.3-alpha.0          -> 1.2.3-dev.0
  1.2.3-alpha.0.beta     -> 1.2.3-dev.0
  1.2.3-alpha.10.0.beta  -> 1.2.3-dev.0