feat(providence-analytics): export more and use cjs only
This commit is contained in:
parent
3865a2433f
commit
e9c6523f59
5 changed files with 31 additions and 2 deletions
5
.changeset/cold-houses-accept.md
Normal file
5
.changeset/cold-houses-accept.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'providence-analytics': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Expose more exports; uopdated to cjs format only
|
||||||
|
|
@ -72,6 +72,7 @@
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.js",
|
".": "./src/index.js",
|
||||||
"./src/cli": "./src/cli/index.js",
|
"./src/cli": "./src/cli/index.js",
|
||||||
|
"./utils.js": "./src/program/utils/index.js",
|
||||||
"./analyzers": "./src/program/analyzers/index.js",
|
"./analyzers": "./src/program/analyzers/index.js",
|
||||||
"./docs/*": "./docs/*"
|
"./docs/*": "./docs/*"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,7 @@
|
||||||
export { providence } from './program/providence.js';
|
const { providence } = require('./program/providence.js');
|
||||||
export { QueryService } from './program/services/QueryService.js';
|
const { QueryService } = require('./program/services/QueryService.js');
|
||||||
|
const { LogService } = require('./program/services/LogService.js');
|
||||||
|
const { InputDataService } = require('./program/services/InputDataService.js');
|
||||||
|
const { AstService } = require('./program/services/AstService.js');
|
||||||
|
|
||||||
|
module.exports = { providence, QueryService, LogService, InputDataService, AstService };
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,18 @@ const FindExportsAnalyzer = require('./find-exports.js');
|
||||||
const FindImportsAnalyzer = require('./find-imports.js');
|
const FindImportsAnalyzer = require('./find-imports.js');
|
||||||
const MatchImportsAnalyzer = require('./match-paths.js');
|
const MatchImportsAnalyzer = require('./match-paths.js');
|
||||||
|
|
||||||
|
const {
|
||||||
|
transformIntoIterableFindImportsOutput,
|
||||||
|
} = require('./helpers/transform-into-iterable-find-imports-output.js');
|
||||||
|
const {
|
||||||
|
transformIntoIterableFindExportsOutput,
|
||||||
|
} = require('./helpers/transform-into-iterable-find-exports-output.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Analyzer,
|
Analyzer,
|
||||||
FindExportsAnalyzer,
|
FindExportsAnalyzer,
|
||||||
FindImportsAnalyzer,
|
FindImportsAnalyzer,
|
||||||
MatchImportsAnalyzer,
|
MatchImportsAnalyzer,
|
||||||
|
transformIntoIterableFindImportsOutput,
|
||||||
|
transformIntoIterableFindExportsOutput,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
const {
|
||||||
|
getSourceCodeFragmentOfDeclaration,
|
||||||
|
} = require('./get-source-code-fragment-of-declaration.js');
|
||||||
|
|
||||||
|
// TODO: move trackdownIdentifier to utils as well
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
getSourceCodeFragmentOfDeclaration,
|
||||||
|
};
|
||||||
Loading…
Reference in a new issue