import { existsSync } from 'fs';

export const fileExists = (value: string, helpers: any) => {
  if (existsSync(value)) {
    return value;
  }
  throw new Error("the file doesn't exist");
};
