From 9077a640c0a05050c082e6ba6bc6e844a6c62e08 Mon Sep 17 00:00:00 2001 From: DuroCodes Date: Thu, 20 Jun 2024 22:42:38 -0400 Subject: [PATCH] fix: change `setup.ts` -> `setup.mjs` --- package.json | 2 +- setup.ts => setup.mjs | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) rename setup.ts => setup.mjs (88%) 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",