Skip to content

Commit

Permalink
Accept windows and macos in the list of supported systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Exidex committed Jul 9, 2024
1 parent 411089e commit 8cef917
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@ const Manifest = z.strictObject({
run_subprocess: z.array(z.string()).default([]),
system: z.array(z.string()).default([]),
}).default({}),
supported_system: z.array(z.discriminatedUnion("os", [
z.strictObject({ os: z.literal("linux") })
])).default([]),
supported_system: z.array(
z.discriminatedUnion("os", [
z.strictObject({ os: z.literal("linux") }),
z.strictObject({ os: z.literal("windows") }),
z.strictObject({ os: z.literal("macos") })
])
).default([]),
});

type Manifest = z.infer<typeof Manifest>;
Expand Down

0 comments on commit 8cef917

Please sign in to comment.