SPB Git

Repository Public License

update-catalog-lock.sh 500 B 11 lines shellscript

1#!/usr/bin/env bash2# Regenerates packages/prism-component-catalog/Sources/CatalogLock.swift from the current manifests.3# Run it after an intentional change to a component manifest, and review the diff.4set -euo pipefail5cd "$(dirname "$0")/.."6tmp="$(mktemp)"7swift run -q prism-cli catalog-lock > "$tmp"8grep -q '"prism.text"' "$tmp" || { echo "catalog-lock produced no entries" >&2; exit 1; }9mv "$tmp" packages/prism-component-catalog/Sources/CatalogLock.swift10echo "CatalogLock.swift updated."11
Files main
Menu

Theme