(fileText, filePath)
| 58408 | } |
| 58409 | |
| 58410 | function loadRcFile(fileText, filePath) { |
| 58411 | var _parse = (0, (_lockfile || _load_lockfile()).parse)(fileText, 'yarnrc'); |
| 58412 | |
| 58413 | const values = _parse.object; |
| 58414 | |
| 58415 | // some keys reference directories so keep their relativity |
| 58416 | |
| 58417 | for (const key in values) { |
| 58418 | if (PATH_KEYS.has(key.replace(/^(--)?([^.]+\.)*/, ''))) { |
| 58419 | values[key] = (0, (_path || _load_path()).resolve)((0, (_path || _load_path()).dirname)(filePath), values[key]); |
| 58420 | } |
| 58421 | } |
| 58422 | |
| 58423 | return values; |
| 58424 | } |
| 58425 | |
| 58426 | // get the built of arguments of a .yarnrc chain of the passed cwd |
| 58427 | function buildRcArgs(cwd, args) { |
no test coverage detected