(id: string)
| 1359 | |
| 1360 | // an arktype entry other than its runtime, imported or required |
| 1361 | importsArktype(id: string): boolean { |
| 1362 | const source = this.host.readFile(id) |
| 1363 | return ( |
| 1364 | source !== undefined && |
| 1365 | /(?:from|import|require\()\s*["']arktype(?:\/(?!runtime)[^"']*)?["']/.test( |
| 1366 | source |
| 1367 | ) |
| 1368 | ) |
| 1369 | } |
| 1370 | |
| 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 |
no test coverage detected