fix: whoops forgot to change the postinstall script

This commit is contained in:
DuroCodes
2024-06-20 23:16:01 -04:00
parent c4f0c16b36
commit df7616482b
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"postinstall": "bun run setup.mjs",
"postinstall": "bun run setup.ts",
"lunaria:build": "lunaria build",
"lunaria:preview": "lunaria preview"
},

View File

@@ -9,6 +9,7 @@ interface GitItem {
branch?: string;
folder?: string;
install?: boolean;
degit?: boolean;
}
const gits: GitItem[] = [
@@ -26,6 +27,7 @@ const gits: GitItem[] = [
repo: "tools",
folder: "packages",
install: false,
degit: true,
},
];
@@ -40,6 +42,10 @@ for (const git of gits) {
if (git.folder) {
await $`mv ${git.name}/${git.folder}/* ${git.name} && rm -rf ${git.name}/${git.folder}`;
}
if (git.degit) {
await $`find ${git.name} -name ".git" -type d -exec rm -rf {} +`;
}
}
const tools = (await $`ls -d tools/* | grep -v .github`.text())