Skip to content

Commit

Permalink
feat: add common optional dist tags
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Apr 16, 2024
1 parent 193fb8e commit 1d234a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dist-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import { z } from "zod";
*/
export const DistTags = z
.object({
/** Latest semver version number. */
latest: z.string(),

// The following tags have no special meaning for the npm registry
// but they are commonly used by packages.
next: z.string().optional(),
alpha: z.string().optional(),
beta: z.string().optional(),
rc: z.string().optional(),
canary: z.string().optional(),
dev: z.string().optional(),
})
.catchall(z.string());

0 comments on commit 1d234a4

Please sign in to comment.