mirror of
https://github.com/EveryInc/compound-engineering-plugin.git
synced 2026-06-19 15:41:46 +02:00
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
#!/usr/bin/env bun
|
|
import { syncReleaseMetadata } from "../../src/release/metadata"
|
|
|
|
const result = await syncReleaseMetadata({ write: false })
|
|
const changed = result.updates.filter((update) => update.changed)
|
|
|
|
if (changed.length === 0) {
|
|
console.log("Release metadata is in sync.")
|
|
process.exit(0)
|
|
}
|
|
|
|
console.error("Release metadata drift detected:")
|
|
for (const update of changed) {
|
|
console.error(`- ${update.path}`)
|
|
}
|
|
process.exit(1)
|