Repository navigation
@stack-effect/author@0.1.0
·
28 commits
to main
since this release
Minor Changes
-
638bb6d: Publish
@stack-effect/authorto define, validate, and build Stack Effect catalogs outside this repository.npm install @stack-effect/author effect@4.0.0-rc.117 @effect/platform-node@4.0.0-rc.117
const { json } = await Effect.runPromise( buildCatalog( { targets: [targets], modules: [modules] }, { catalogId: "acme", root: new URL("./", import.meta.url) }, ).pipe(Effect.provide(NodeServices.layer)), );
Define targets and modules with
defineTargetsanddefineModules, keep file bodies in template files, and build a deterministic v1 catalog document withbuildCatalog. A catalog that extends the official one declaresrequires: ["official"]and validates against the document fromloadOfficialCatalog. Finalize scripts are rejected unless you passfinalizeScripts: "allow", and consumers run them only with consent. The package ships ESM with bundled types and needseffect@4.0.0-rc.117as an exact peer.