class FileSystemError extends Data.TaggedError("FileSystemError")<{
message: string;
}> {}
const ensureFoundryConfigExists = (basePath: string) => {
const foundryTomlPath = path.join(basePath, "foundry.toml");
if (!fs.existsSync(foundryTomlPath)) {
return Effect.fail(
new FileSystemError({
message: "Foundry Configuration not found",
}),
);
}
return Effect.succeed(foundryTomlPath);
};
class FileSystemError extends Data.TaggedError("FileSystemError")<{
message: string;
}> {}
const ensureFoundryConfigExists = (basePath: string) => {
const foundryTomlPath = path.join(basePath, "foundry.toml");
if (!fs.existsSync(foundryTomlPath)) {
return Effect.fail(
new FileSystemError({
message: "Foundry Configuration not found",
}),
);
}
return Effect.succeed(foundryTomlPath);
};