(result, cwdPath)
| 65940 | if (preferLocal) { |
| 65941 | applyPreferLocal(result, cwdPath); |
| 65942 | } |
| 65943 | if (addExecPath) { |
| 65944 | applyExecPath(result, execPath, cwdPath); |
| 65945 | } |
| 65946 | return [...result, pathOption].join(import_node_path.default.delimiter); |
| 65947 | }; |
| 65948 | var applyPreferLocal = (result, cwdPath) => { |
| 65949 | let previous; |
| 65950 | while (previous !== cwdPath) { |
| 65951 | result.push(import_node_path.default.join(cwdPath, "node_modules/.bin")); |
| 65952 | previous = cwdPath; |