( configFilePath: string | undefined, projectSearchDirOption: string | undefined, projectOption: string | undefined, cwdOption: string )
| 145 | * @internal |
| 146 | */ |
| 147 | export function getBasePathForProjectLocalDependencyResolution( |
| 148 | configFilePath: string | undefined, |
| 149 | projectSearchDirOption: string | undefined, |
| 150 | projectOption: string | undefined, |
| 151 | cwdOption: string |
| 152 | ) { |
| 153 | if (configFilePath != null) return dirname(configFilePath); |
| 154 | return projectSearchDirOption ?? projectOption ?? cwdOption; |
| 155 | // TODO technically breaks if projectOption is path to a file, not a directory, |
| 156 | // and we attempt to resolve relative specifiers. By the time we resolve relative specifiers, |
| 157 | // should have configFilePath, so not reach this codepath. |
| 158 | } |
| 159 | |
| 160 | /** @internal */ |
| 161 | export function once<Fn extends (...args: any[]) => any>(fn: Fn) { |
no outgoing calls
no test coverage detected
searching dependent graphs…