1
0
Fork 0

feat: re-export most significant symbols from app

This commit is contained in:
Sean Sube 2022-04-24 17:22:32 -05:00
parent 4c7cd989ac
commit 8196d6c10a
2 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,9 @@
"doc": "docs",
"test": "test"
},
"exports": {
"app": "./out/src/app.js"
},
"scripts": {
"build": "make",
"test": "make test"

View File

@ -17,6 +17,19 @@ import { VERSION_INFO } from './version.js';
import { RuleVisitor } from './visitor/RuleVisitor.js';
import { VisitorContext } from './visitor/VisitorContext.js';
// re-exports
export { YamlParser } from './parser/YamlParser.js';
export { SummaryReporter } from './reporter/SummaryReporter.js';
export { TableReporter } from './reporter/TableReporter.js';
export { YamlReporter } from './reporter/YamlReporter.js';
export { createRuleSources, loadRules } from './rule/load.js';
export { createRuleSelector, resolveRules } from './rule/resolve.js';
export { validateConfig } from './rule/validate.js';
export { readSource, writeSource } from './source.js';
export { VERSION_INFO } from './version.js';
export { RuleVisitor } from './visitor/RuleVisitor.js';
export { VisitorContext } from './visitor/VisitorContext.js';
const ARGS_START = 2;
export const STATUS_SUCCESS = 0;
export const STATUS_ERROR = 1;