* Resolve a nested dependency starting from the given file
(baseUrl: string, ...packages: string[])
| 311 | * Resolve a nested dependency starting from the given file |
| 312 | */ |
| 313 | function resolveChain(baseUrl: string, ...packages: string[]) { |
| 314 | const require = createRequire(baseUrl); |
| 315 | |
| 316 | return packages.reduce( |
| 317 | (base, pkg) => |
| 318 | path.dirname(require.resolve(pkg + "/package.json", { paths: [base] })), |
| 319 | path.dirname(fileURLToPath(baseUrl)) |
| 320 | ); |
| 321 | } |
| 322 | |
| 323 | // If this build is part of a pull request, include the pull request number in |
| 324 | // the version number. |
no outgoing calls
no test coverage detected
searching dependent graphs…