Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/binmat. binmat simulator for game hackmud
Something went wrong. Try again.
1234567891011#!/usr/bin/env nodeimport { spawnSync } from "child_process"import * as Semver from "semver"import packageConfig from "../package.json" with { type: "json" }
const incrementedVersion = Semver.inc(packageConfig.version || "0.0.0", "patch")const hash = spawnSync("git", [ "rev-parse", "--short", "HEAD" ], { encoding: "utf8" }).stdout.trim()
spawnSync("pnpm", [ "version", `${incrementedVersion}-${hash}` ], { stdio: "inherit" })process.exit()