Skip to content

Commit 384a3be

Browse files
committed
fix: remove redundant bits
1 parent c70853e commit 384a3be

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

scripts/update-package-info.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
import { readFileSync, writeFileSync } from "fs";
44
import { join } from "path";
55

6-
interface PackageJson {
7-
version: string;
8-
name?: string;
9-
description?: string;
10-
}
11-
126
// Read package.json
137
const packageJsonPath = join(import.meta.dirname, "..", "package.json");
14-
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as PackageJson;
8+
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as {
9+
version: string;
10+
};
1511

1612
// Define the packageInfo.ts content
1713
const packageInfoContent = `// This file was generated by scripts/update-package-info.ts - Do not edit it manually.

scripts/update-version.ts

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

0 commit comments

Comments
 (0)