mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 20:01:15 +02:00
14 lines
493 B
JavaScript
14 lines
493 B
JavaScript
import { existsSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
import { bootstrap } from "./scripts/bootstrap-distilled.mjs";
|
|
|
|
export const hooks = {
|
|
updateConfig(config) {
|
|
// pnpm also runs this hook for parallel Turbo tasks. Only bootstrap a
|
|
// missing checkout; leave existing worktrees and their Git config alone.
|
|
if (!existsSync(resolve(import.meta.dirname, "submodules/distilled/.git"))) {
|
|
bootstrap(import.meta.dirname);
|
|
}
|
|
return config;
|
|
},
|
|
};
|