mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
16 lines
540 B
TypeScript
16 lines
540 B
TypeScript
import { $ } from "bun";
|
|
|
|
const currentWorktreeRoot = (
|
|
await $`git rev-parse --show-toplevel`.text()
|
|
).trim();
|
|
const gitCommonDir = (
|
|
await $`git rev-parse --path-format=absolute --git-common-dir`.text()
|
|
).trim();
|
|
const mainWorktreeRoot = (
|
|
await $`cd ${gitCommonDir} && cd .. && pwd`.text()
|
|
).trim();
|
|
|
|
await $`cp ${mainWorktreeRoot}/.env ${currentWorktreeRoot}/.env`;
|
|
await $`cp -R ${mainWorktreeRoot}/apps/viewer/src/test/.auth ${currentWorktreeRoot}/apps/viewer/src/test/.auth`;
|
|
await $`cd ${currentWorktreeRoot} && bun install`;
|