@dr-yaml/adapter-circleci
v0.0.2
Published
CircleCI adapter — parse + emit between CircleCI YAML and @dr-yaml/ir.
Maintainers
Readme
@dr-yaml/adapter-circleci
CircleCI adapter for the
dr-yaml toolchain. Parses
CircleCI YAML into @dr-yaml/ir and emits IR back to
CircleCI YAML deterministically.
Install
npm install @dr-yaml/adapter-circleci @dr-yaml/irUsage
import { parse, emit } from "@dr-yaml/adapter-circleci";
const { ok, pipeline, errors } = parse(yamlString);
const { yaml, lossReport } = emit(pipeline);Orbs are preserved as opaque OrbSteps with the orb ref kept intact.
when/unless conditions round-trip through the IR's Predicate
tree.
License
MIT.
