mirror of
https://github.com/sern-handler/website
synced 2026-06-15 20:32:19 +00:00
19 lines
375 B
JavaScript
19 lines
375 B
JavaScript
import { $ } from "bun";
|
|
import { GITHUB_URL } from '~/utils/consts.ts';
|
|
|
|
const gits = [
|
|
{
|
|
name: 'sern-handler-v3'
|
|
},
|
|
{
|
|
name: 'sern-handler-v4',
|
|
branch: 'feat/v4',
|
|
},
|
|
];
|
|
|
|
for (const git of gits) {
|
|
await $`rm -rf ${git.name}`;
|
|
await $`git clone -b ${git.branch || 'main'} ${GITHUB_URL}/handler ${git.name}`;
|
|
await $`cd ${git.name} && bun install`;
|
|
}
|