From ce27388c00f25cfe08d81e7821a3715a92d80e6c Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 7 Nov 2026 20:48:08 -0600 Subject: [PATCH] organize --- README.md | 2 +- packages/scripts/package.json | 7 ------- packages/website/package.json | 7 ------- scripts/build-protos.sh | 2 +- scripts/build-website.sh | 2 +- scripts/dev-website.sh | 2 ++ scripts/dev.sh | 2 -- scripts/discover-ids.sh | 2 +- scripts/download-client.sh | 2 +- scripts/lint.sh | 5 ++--- scripts/preview-website.sh | 2 ++ scripts/record-performance.sh | 2 +- scripts/vfs.sh | 2 +- 13 files changed, 13 insertions(+), 26 deletions(-) create mode 100755 scripts/dev-website.sh delete mode 100755 scripts/dev.sh create mode 100755 scripts/preview-website.sh diff --git a/README.md b/README.md index 31d14018d..945b9448e 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Go through the different packages in the `packages` directory and clone their re Launching the website is as easy as running the `dev` script. ```bash -scripts/dev.sh +scripts/dev-website.sh ``` If you ever make a change to any proto file, make sure to rebuild them. diff --git a/packages/scripts/package.json b/packages/scripts/package.json index bccf3c6c2..f1f22308d 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -1,13 +1,6 @@ { "name": "@blitzkit/scripts", "private": true, - "scripts": { - "discover-ids": "bun src/discoverIds/index.ts", - "build-protos": "bun src/protos.ts", - "record-performance": "bun src/recordPerformance/index.ts", - "download-client": "bun src/downloadClient/index.ts", - "vfs": "bun src/vfs/index.ts" - }, "dependencies": { "@blitzkit/core": "workspace:*", "@blitzkit/i18n": "workspace:*", diff --git a/packages/website/package.json b/packages/website/package.json index 0beb690f9..49b2b7ae7 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -1,13 +1,6 @@ { "name": "@blitzkit/website", "type": "module", - "scripts": { - "dev": "astro dev", - "build": "astro build", - "preview": "astro preview", - "lint": "astro check", - "astro": "astro" - }, "dependencies": { "@astrojs/check": "^0.9.4", "@astrojs/node": "^9.4.4", diff --git a/scripts/build-protos.sh b/scripts/build-protos.sh index e87441ec5..f0c44a7de 100755 --- a/scripts/build-protos.sh +++ b/scripts/build-protos.sh @@ -1,2 +1,2 @@ cd packages/scripts -bun run build-protos \ No newline at end of file +bun src/protos.ts \ No newline at end of file diff --git a/scripts/build-website.sh b/scripts/build-website.sh index 6c54b0141..e0810c59a 100755 --- a/scripts/build-website.sh +++ b/scripts/build-website.sh @@ -1,2 +1,2 @@ cd packages/website -bun --bun run build \ No newline at end of file +bun x --bun astro build \ No newline at end of file diff --git a/scripts/dev-website.sh b/scripts/dev-website.sh new file mode 100755 index 000000000..69b8adc76 --- /dev/null +++ b/scripts/dev-website.sh @@ -0,0 +1,2 @@ +cd packages/website +bun x --bun astro dev \ No newline at end of file diff --git a/scripts/dev.sh b/scripts/dev.sh deleted file mode 100755 index 64ce8eb3c..000000000 --- a/scripts/dev.sh +++ /dev/null @@ -1,2 +0,0 @@ -cd packages/website -bun --bun run dev \ No newline at end of file diff --git a/scripts/discover-ids.sh b/scripts/discover-ids.sh index 63d9c727f..a6480f0de 100755 --- a/scripts/discover-ids.sh +++ b/scripts/discover-ids.sh @@ -1,2 +1,2 @@ cd packages/scripts -bun run discover-ids \ No newline at end of file +bun src/discoverIds/index.ts \ No newline at end of file diff --git a/scripts/download-client.sh b/scripts/download-client.sh index 393e88009..d5cfad5e7 100755 --- a/scripts/download-client.sh +++ b/scripts/download-client.sh @@ -1,2 +1,2 @@ cd packages/scripts -bun run download-client \ No newline at end of file +bun src/downloadClient/index.ts \ No newline at end of file diff --git a/scripts/lint.sh b/scripts/lint.sh index d8eeef303..67752c3f5 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -1,3 +1,2 @@ -for dir in packages/*/; do - (cd "$dir" && bun --bun run lint) -done \ No newline at end of file +cd packages/website +bun x --bun astro check \ No newline at end of file diff --git a/scripts/preview-website.sh b/scripts/preview-website.sh new file mode 100755 index 000000000..6bc9cee00 --- /dev/null +++ b/scripts/preview-website.sh @@ -0,0 +1,2 @@ +cd packages/website +bun x --bun astro preview \ No newline at end of file diff --git a/scripts/record-performance.sh b/scripts/record-performance.sh index e91437c3f..15e42722a 100755 --- a/scripts/record-performance.sh +++ b/scripts/record-performance.sh @@ -1,2 +1,2 @@ cd packages/scripts -bun run record-performance \ No newline at end of file +bun src/recordPerformance/index.ts \ No newline at end of file diff --git a/scripts/vfs.sh b/scripts/vfs.sh index 310ee4562..3ac48cf99 100755 --- a/scripts/vfs.sh +++ b/scripts/vfs.sh @@ -1,2 +1,2 @@ cd packages/scripts -bun run vfs \ No newline at end of file +bun src/vfs/index.ts \ No newline at end of file