import { PluginSystemHelpers } from "../createPluginSystemHelpers"; import { checkPathExists } from "./lib/checkPathExists"; export type CheckHasProjectFileArgs = { filename: string; helpers: PluginSystemHelpers; }; export const checkHasProjectFile = async ( args: CheckHasProjectFileArgs, ): Promise => { const filePath = args.helpers.joinPathFromRoot(args.filename); return checkPathExists(filePath); };