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