MCPcopy Index your code
hub / github.com/nodejs/node / getOutputDirectoriesForBaseDirectory

Function getOutputDirectoriesForBaseDirectory

test/fixtures/snapshot/typescript.js:44264–44277  ·  view source on GitHub ↗
(commonSourceDirGuess)

Source from the content-addressed store, hash-verified

44262 }
44263 return undefined;
44264 function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
44265 var _a, _b;
44266 // Config file ouput paths are processed to be relative to the host's current directory, while
44267 // otherwise the paths are resolved relative to the common source dir the compiler puts together
44268 var currentDir = state.compilerOptions.configFile ? ((_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a)) || "" : commonSourceDirGuess;
44269 var candidateDirectories = [];
44270 if (state.compilerOptions.declarationDir) {
44271 candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
44272 }
44273 if (state.compilerOptions.outDir && state.compilerOptions.outDir !== state.compilerOptions.declarationDir) {
44274 candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.outDir)));
44275 }
44276 return candidateDirectories;
44277 }
44278 }
44279 }
44280 }

Callers 1

tryLoadInputFileForPathFunction · 0.85

Calls 4

toAbsolutePathFunction · 0.85
combineDirectoryPathFunction · 0.85
callMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…