FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: switch input schemas to zod mini by jong-kyung · Pull Request #98 · voidzero-dev/setup-vp · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .mjs  (1) .ts  (2) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
125 changes: 31 additions & 94 deletions dist/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/inputs.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getInput, getBooleanInput } from "@actions/core";
import { parse as parseYaml } from "yaml";
import { z } from "zod";
import { z } from "zod/mini";
import type { Inputs, RunInstall } from "./types.js";
import { RunInstallInputSchema } from "./types.js";

Expand Down Expand Up @@ -39,7 +39,7 @@ function parseRunInstall(input: string): RunInstall[] {
if (Array.isArray(result)) return result;
return [result];
} catch (error) {
if (error instanceof z.ZodError) {
if (error instanceof z.core.$ZodError) {
throw new Error(
`Invalid run-install input: ${error.issues.map((e) => e.message).join(", ")}`,
);
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { z } from "zod";
import { z } from "zod/mini";

// Run install configuration schema
export const RunInstallSchema = z.object({
cwd: z.string().optional(),
args: z.array(z.string()).optional(),
cwd: z.optional(z.string()),
args: z.optional(z.array(z.string())),
});

export const RunInstallInputSchema = z.union([
Expand Down
Loading

Back | FazBrowse Home | New Git URL