Problem
The published package only exposes a CLI entry point. dist/index.d.ts exports nothing. Tool #4 (spec-ci-plugin) needs to consume the lint engine programmatically:
import { lint, allRules } from '@unityinflow/spec-linter';
Proposal
Add a separate library entry point (e.g. src/lib.ts) that exports:
lint() from engine.ts
allRules from rules/index.ts
- All types from types.ts
parseSpecFile() from parser.ts
Update tsup to have two entry points: src/index.ts (CLI) and src/lib.ts (library).
Acceptance Criteria
Labels
enhancement, v0.1.0, dependency:spec-ci-plugin
Problem
The published package only exposes a CLI entry point.
dist/index.d.tsexports nothing. Tool #4 (spec-ci-plugin) needs to consume the lint engine programmatically:Proposal
Add a separate library entry point (e.g.
src/lib.ts) that exports:lint()from engine.tsallRulesfrom rules/index.tsparseSpecFile()from parser.tsUpdate tsup to have two entry points:
src/index.ts(CLI) andsrc/lib.ts(library).Acceptance Criteria
import { lint, allRules } from '@unityinflow/spec-linter'worksexportsfield configuredLabels
enhancement, v0.1.0, dependency:spec-ci-plugin