MCPcopy Create free account
hub / github.com/arktypeio/arktype / componentsOf

Function componentsOf

ark/aot/check.ts:158–162  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

156
157// a component may read a validator as only its framework's compiled code shows
158const componentsOf = (cwd: string): string[] =>
159 globSync("**/*.{svelte,vue,astro,mdx}", { cwd, exclude: isExcluded })
160 .map(match => resolve(cwd, match))
161 .filter(file => /\bimport\b/.test(readFileSync(file, "utf8")))
162 .sort()
163
164export const check = (
165 patterns: string[],

Callers 1

checkFunction · 0.85

Calls 5

sortMethod · 0.80
filterMethod · 0.80
testMethod · 0.80
resolveFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected