chore: Update the emver

This commit is contained in:
BluJ
2023-04-25 09:28:00 -06:00
parent 5f5cfe77a3
commit c355a9d2d9
2 changed files with 15 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import * as matches from "ts-matches";
const starSub = /((\d+\.)*\d+)\.\*/;
// prettier-ignore
export type ValidEmVer = `${'>' | '<' | '>=' | '<=' | '=' | ''}${number | '*'}${`.${number | '*'}` | ""}${`.${number | '*'}` | ""}${`.${number | '*'}` | ""}${`-${string}` | ""}`;
export type ValidEmVer = `${number | '*'}${`.${number | '*'}` | ""}${`.${number | '*'}` | ""}${`-${string}` | ""}`;
function incrementLastNumber(list: number[]) {
const newList = [...list];