mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
support the "module" field in package.json files
This commit is contained in:
@@ -146,7 +146,7 @@ private string getASrcFolderName() { result = ["ts", "js", "src", "lib"] }
|
||||
class MainModulePath extends PathExpr, @json_string {
|
||||
PackageJSON pkg;
|
||||
|
||||
MainModulePath() { this = pkg.getPropValue("main") }
|
||||
MainModulePath() { this = pkg.getPropValue(["main", "module"]) }
|
||||
|
||||
/** Gets the `package.json` file in which this path occurs. */
|
||||
PackageJSON getPackageJSON() { result = pkg }
|
||||
|
||||
Reference in New Issue
Block a user