refactor: move typedoc script into setup.mjs

This commit is contained in:
DuroCodes
2024-05-14 17:12:42 -04:00
parent deec96d45d
commit 96e71610ad
5 changed files with 7 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ jobs:
run: bun install
- name: Build
run: rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && bun run build
run: bun run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,3 +1,3 @@
[build]
publish = "dist"
command = "rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && bun run build"
command = "bun run build"

View File

@@ -7,7 +7,8 @@
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"postinstall": "bun run setup.mjs"
},
"dependencies": {
"@astrojs/check": "^0.5.10",

3
setup.mjs Normal file
View File

@@ -0,0 +1,3 @@
import { $ } from "bun";
await $`rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install`;