import { SliceMachineContext } from "@slicemachine/plugin-kit"; import { checkIsTypeScriptProject as baseCheckIsTypeScriptProject } from "@slicemachine/plugin-kit/fs"; import { PluginOptions } from "../types"; type CheckIsTypeScriptProjectArgs = { helpers: SliceMachineContext["helpers"]; options: SliceMachineContext["options"]; }; export const checkIsTypeScriptProject = async ( args: CheckIsTypeScriptProjectArgs, ): Promise => { return ( args.options.typescript ?? baseCheckIsTypeScriptProject({ helpers: args.helpers }) ); };