diff --git a/.changeset/thirty-nails-camp.md b/.changeset/thirty-nails-camp.md new file mode 100644 index 000000000..a845151cc --- /dev/null +++ b/.changeset/thirty-nails-camp.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/scripts/shasum.mjs b/scripts/shasum.mjs deleted file mode 100755 index 3180ccfd6..000000000 --- a/scripts/shasum.mjs +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env node -// @ts-check - -import { createHash } from "node:crypto"; -import { readFileSync } from "node:fs"; - -/** - * @param {string} filename - * @param {string=} algorithm - * @returns {string} - */ -function hashFile(filename, algorithm = "sha256") { - const data = readFileSync(filename, { encoding: "utf-8" }).replace(/\r/g, ""); - return createHash(algorithm).update(data).digest("hex"); -} - -const { [2]: filename } = process.argv; -console.log(hashFile(filename));