fix(providence): expose analyzers
This commit is contained in:
parent
80e1f79e0b
commit
67cd8e351d
3 changed files with 20 additions and 0 deletions
5
.changeset/chilled-tools-help.md
Normal file
5
.changeset/chilled-tools-help.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'providence-analytics': patch
|
||||
---
|
||||
|
||||
Expose analyzers that are requested to be run in external contexts
|
||||
|
|
@ -71,6 +71,7 @@
|
|||
"exports": {
|
||||
".": "./src/program/providence.js",
|
||||
"./src/cli": "./src/cli/index.js",
|
||||
"./analyzers": "./src/program/analyzers/index.js",
|
||||
"./docs/": "./docs/"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
Loading…
Reference in a new issue