We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8239611 commit 8dd4d35Copy full SHA for 8dd4d35
javascript/ql/lib/semmle/javascript/internal/paths/JSPaths.qll
@@ -43,15 +43,11 @@ module JSPaths {
43
//
44
// { include: ["foo"], compilerOptions: { outDir: "./bar" }}
45
46
- exists(TSConfig tsconfig, Container includeTarget |
+ exists(TSConfig tsconfig |
47
name =
48
tsconfig.getCompilerOptions().getPropStringValue("outDir").regexpReplaceAll("^\\./", "") and
49
base = tsconfig.getFolder() and
50
- includeTarget = tsconfig.getAnIncludePathTarget()
51
- |
52
- result = includeTarget.(Folder)
53
- or
54
- result = includeTarget.(File).getParentContainer()
+ result = tsconfig.getEffectiveRootDir()
55
)
56
or
57
// Heuristic version of the above based on commonly used source and build folder names
0 commit comments