Skip to content

Commit f3992f1

Browse files
committed
chore: cleanup
1 parent 9be44ff commit f3992f1

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

scripts/lib/semver.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/lib/version.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import fs from "node:fs";
1+
import fs from "node:fs/promises";
22

3-
export const version = fs
4-
.readFileSync("VERSION", "utf-8")
5-
.trim()
6-
.replace("v", "");
3+
export const version = await fs
4+
.readFile("VERSION", "utf-8")
5+
.then((v) => v.trim().replace("v", ""));

scripts/update-website.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { glob } from "./lib/glob";
55

66
const docs = glob(["packages/plugins/eslint-plugin-react-*/src/rules/*.md"]);
77

8+
// TODO: Generate the meta.json file as well
89
const [
910
files,
1011
// rules,

scripts/verify-lockfile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import ansis from "ansis";
22
import { x } from "tinyexec";
33

44
const { stdout } = await x("git", ["diff", "HEAD@{1}", "--stat", "--", "./pnpm-lock.yaml"]);
5+
56
if (stdout.split("\n").length > 0) {
67
console.log("");
78
console.info(ansis.yellow("Detected changes in pnpm-lock.yaml!"));

0 commit comments

Comments
 (0)