Merge pull request #1292 from ing-bank/fix/exportsProvidence

fix(providence): expose analyzers
This commit is contained in:
Thijs Louisse 2021-03-25 16:12:51 +01:00 committed by GitHub
commit 5bd94c2529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'providence-analytics': patch
---
Expose analyzers that are requested to be run in external contexts

View file

@ -71,6 +71,7 @@
"exports": {
".": "./src/program/providence.js",
"./src/cli": "./src/cli/index.js",
"./analyzers": "./src/program/analyzers/index.js",
"./docs/": "./docs/"
}
}

View file

@ -0,0 +1,14 @@
// A base class for writing Analyzers
const { Analyzer } = require('./helpers/Analyzer.js');
// Expose analyzers that are requested to be run in external contexts
const FindExportsAnalyzer = require('./find-exports.js');
const FindImportsAnalyzer = require('./find-imports.js');
const MatchImportsAnalyzer = require('./match-paths.js');
module.exports = {
Analyzer,
FindExportsAnalyzer,
FindImportsAnalyzer,
MatchImportsAnalyzer,
};