@lumpcode/cli-utils
v0.0.12
Published
Types, defineX helpers, and runtime utilities for Lumpcode lump configs and recipes
Maintainers
Readme
@lumpcode/cli-utils
Published npm package: types, define* helpers, and runtime utilities for authoring Lumpcode lump configs and recipes.
Re-exports all of @lumpcode/cli-types plus runtime helpers bundled from @lumpcode/cli sources at build time (cli-types stays an external dependency at publish).
During the transition both @lumpcode/cli-types and @lumpcode/cli-utils are supported; new work should prefer @lumpcode/cli-utils.
Install
npm install @lumpcode/cli-utilsUsage
import { defineConfig, normalizeSteps, type LumpJsConfig } from '@lumpcode/cli-utils';Build
From the monorepo root:
npm run build -w=@lumpcode/core
npm run build -w=@lumpcode/cli-types
npm run build -w=@lumpcode/cli-utilsRuntime exports
getContextStatus— remote marker-commit status for a contextmakeGitCommitMessageFnFromLumpName— defaultLUMP:<lump> - <context>messagesgetGitCommitMessage,getLumpCommitPrefixForLump— commit message helpersreadYamlList— read a YAML file as a flat list ([]when missing or not an array)normalizeSteps— normalize lumpstepsto an array
