(id: string)
| 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 { |
no test coverage detected