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

Function modulesOf

ark/repo/testBuild.ts:106–119  ·  view source on GitHub ↗
(pkg: string, includeInlined = false)

Source from the content-addressed store, hash-verified

104}
105
106const modulesOf = (pkg: string, includeInlined = false) =>
107 readdirSync(fromPackage(pkg, "out"), { recursive: true, encoding: "utf8" })
108 .filter(
109 path =>
110 path.endsWith(".d.ts") &&
111 (includeInlined ||
112 (!path.startsWith("_internal/") &&
113 !path.startsWith("_internal\\") &&
114 !path.startsWith("_util/") &&
115 !path.startsWith("_util\\") &&
116 path !== "shared/issueFeatures.d.ts" &&
117 path !== "shared\\issueFeatures.d.ts"))
118 )
119 .map(path => path.slice(0, -".d.ts".length).replace(/\\/g, "/"))
120
121const program = ts.createProgram(
122 packages.flatMap(pkg =>

Callers 1

testBuild.tsFile · 0.70

Calls 4

fromPackageFunction · 0.85
filterMethod · 0.80
replaceMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected