Skip to content

Commit

Permalink
chore(tools): fix setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
lacolaco committed Jul 15, 2024
1 parent 37e2e99 commit 2f0354b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tools/lib/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,14 @@ export default async function () {
}

async function syncSubmodule() {
const sh = $({ cwd: rootDir });
const sh = $({ cwd: rootDir, verbose: 'short' });
await sh`git submodule sync`;
await sh`git submodule update --init`;
}

async function initBuildDir() {
const buildDirExists = await exists(buildDir);
if (!buildDirExists) {
await rmrf(buildDir);
await mkdir(buildDir, { recursive: true });
await cpRf(resolve(rootDir, 'origin'), buildDir);
await cpRf(
resolve(rootDir, '.bazelrc'),
resolve(buildDir, '.bazelrc.user')
);
}
await rmrf(buildDir);
await mkdir(buildDir, { recursive: true });
await cpRf(resolve(rootDir, 'origin'), buildDir);
await cpRf(resolve(rootDir, '.bazelrc'), resolve(buildDir, '.bazelrc.user'));
}

0 comments on commit 2f0354b

Please sign in to comment.