diff --git a/package.json b/package.json index 5cf9bf442..c4e62c270 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "astro check && astro build", "preview": "astro preview", "astro": "astro", - "postinstall": "bun run setup.ts", + "postinstall": "bun run setup.mjs", "lunaria:build": "lunaria build", "lunaria:preview": "lunaria preview" }, diff --git a/setup.ts b/setup.mjs similarity index 88% rename from setup.ts rename to setup.mjs index ff63e2312..7f8e01e4f 100644 --- a/setup.ts +++ b/setup.mjs @@ -3,15 +3,7 @@ import { GITHUB_URL } from "~/utils/consts.ts"; import { existsSync } from "node:fs"; import { copyFile } from "node:fs/promises"; -interface GitItem { - name: string; - repo: string; - branch?: string; - install?: boolean; - folder?: string; -} - -const gits: GitItem[] = [ +const gits = [ { name: "sern-handler-v3", repo: "handler",