Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions packages/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export type { Env } from "./env.js";

import { existsSync, readFileSync } from "node:fs";
import { join } from "node:path";
import type { TaggedErrorClass } from "@outfitter/contracts";
import { NotFoundError, Result, TaggedError, ValidationError } from "@outfitter/contracts";
import JSON5 from "json5";
import { parse as parseToml } from "smol-toml";
Expand All @@ -53,19 +52,7 @@ import type { ZodSchema } from "zod";
// Error Types
// ============================================================================

const ParseErrorBase: TaggedErrorClass<
"ParseError",
{
/** Human-readable error message describing the parse failure */
message: string;
/** Name of the file that failed to parse */
filename: string;
/** Line number where the error occurred (if available) */
line?: number;
/** Column number where the error occurred (if available) */
column?: number;
}
> = TaggedError("ParseError")<{
const ParseErrorBase = TaggedError("ParseError")<{
/** Human-readable error message describing the parse failure */
message: string;
/** Name of the file that failed to parse */
Expand Down