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

Method isFollowed

ark/aot/graph.ts:1373–1386  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1371 // outside node_modules, or in a package that opts in or the settings
1372 // precompile, but not a workspace package the settings run on arktype
1373 isFollowed(id: string): boolean {
1374 const [root, name] = dependencyOf(id) ?? []
1375 const manifestPath = root && join(root, "package.json")
1376 return root === undefined ?
1377 !runsOnArktype(id, this.dependencies, this.workspaceNamesByDir)
1378 : !this.leavesDependencies &&
1379 (this.optsInByPackage[root] ??=
1380 this.dependencies[name!] === "aot" ||
1381 optsIn(
1382 this.host.readFile(manifestPath!),
1383 manifestPath,
1384 console.warn
1385 ))
1386 }
1387
1388 // e.g. `arksets` for a module a workspace links from its source
1389 packageNameOf(id: string): string | undefined {

Callers 8

resolveMethod · 0.95
isTransformedMethod · 0.80
textImportsOfMethod · 0.80
readDependencyMethod · 0.80
readDependenciesOfMethod · 0.80
isReachedEarlyMethod · 0.80
importsInMethod · 0.80
checkConfigOrderMethod · 0.80

Calls 5

dependencyOfFunction · 0.90
runsOnArktypeFunction · 0.90
optsInFunction · 0.90
joinFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected