mirror of
https://github.com/upstash/skills.git
synced 2026-09-17 14:20:06 +08:00
d34524d3ef
- scripts/build.mjs generates skills/upstash/ from individual skills - scripts/check.mjs verifies the generated output matches git state - scripts/header.md defines the combined SKILL.md frontmatter - CI workflow runs check on PRs and pushes to main - README documents the repo structure and contribution workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
395 B
JavaScript
14 lines
395 B
JavaScript
import { execSync } from "child_process";
|
|
|
|
const status = execSync("git status --porcelain", { encoding: "utf-8" }).trim();
|
|
|
|
if (status) {
|
|
console.error("\n >> Error: upstash skill is out of date. Run `npm run build` and commit the result.\n");
|
|
console.error("Changed files:\n");
|
|
console.error(status);
|
|
console.error();
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log("upstash skill is up to date.");
|