(identifier: string)
| 140 | } |
| 141 | |
| 142 | const buildIdentifier = (identifier: string): string => { |
| 143 | if (!identifierPattern.test(identifier)) { |
| 144 | return invalid(`build identifier must be non-empty [0-9A-Za-z-], received ${JSON.stringify(identifier)}`) |
| 145 | } |
| 146 | return identifier |
| 147 | } |
| 148 | |
| 149 | /** @internal */ |
| 150 | export type Core = Pick<SemVer, "major" | "minor" | "patch" | "prerelease"> |