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

Function publicEntryPoints

ark/repo/bundle.ts:242–253  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

240
241// esbuild splits an entry listed twice into a chunk
242export const publicEntryPoints = (dir: string): string[] => [
243 ...new Set(
244 Object.entries<string | { default: string }>(
245 readPackageJson(dir).exports
246 ).flatMap(([subpath, target]) => {
247 const file = typeof target === "string" ? target : target.default
248 return !subpath.includes("*") && file.endsWith(".js") ?
249 [join(dir, file)]
250 : []
251 })
252 )
253]
254
255// each bin entry ships standalone as tsc wrote it, keeping its shebang
256const binEntryPoints = (dir: string): string[] => {

Callers 2

entryUrlsFunction · 0.90
bundleFunction · 0.85

Calls 2

readPackageJsonFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected