* Continuously resolve the basedir of packages separated by '>'
( id: string, basedir: string, preserveSymlinks = false, )
| 175 | * Continuously resolve the basedir of packages separated by '>' |
| 176 | */ |
| 177 | function nestedResolveBasedir( |
| 178 | id: string, |
| 179 | basedir: string, |
| 180 | preserveSymlinks = false, |
| 181 | ) { |
| 182 | const pkgs = id.split('>').map((pkg) => pkg.trim()) |
| 183 | for (const pkg of pkgs) { |
| 184 | basedir = resolvePackageData(pkg, basedir, preserveSymlinks)?.dir || basedir |
| 185 | } |
| 186 | return basedir |
| 187 | } |
no test coverage detected