@flowwright/plugin-artifacts
v0.2.0
Published
FlowWright shared library — artifact archiving helpers (archiveArtifacts, archiveStage).
Readme
@flowwright/plugin-artifacts
Keep the build outputs worth keeping — a friendly little archiving library. These are thin
wrappers over the @flowwright/core artifact.upload primitive: each
path lands in the stage's produces and gets collected by the executor once the stage
succeeds.
import { stage } from "@flowwright/core";
import { archiveArtifacts, archiveStage } from "@flowwright/plugin-artifacts";
stage("Build", async () => {
await sh`pnpm build`;
await archiveArtifacts(["dist", "coverage/lcov.info"]);
});
// or as a ready-made collect stage:
archiveStage("Archive", ["dist"], { needs: ["build"] });