isHook

tcmts.cli.pages.isHook · #7enyolrb · term · runs anywhere

export const isHook = (paths: string[]): boolean =>
  paths.length > 0 && paths.every((p) => /^use[A-Z0-9]/.test(p.slice(p.lastIndexOf(".") + 1)))

used by