Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/lib/adev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export async function buildAdev() {
}
}

export function serveAdev() {
export async function serveAdev() {
const sh = $$({ cwd: buildDir, reject: false });
// Ensure dependencies are installed before running ibazel
await $$({ cwd: buildDir })`pnpm install --frozen-lockfile`;
const p = sh`pnpm ibazel run //adev:build.serve`;
const pid = p.pid!;
consola.log(`adev process started: ${pid}`);
Expand Down
2 changes: 1 addition & 1 deletion tools/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function watch() {
const fileWatcher = watchLocalizedFiles();

consola.start('Start adev server...');
const adevServer = serveAdev();
const adevServer = await serveAdev();

const shutdown = () => {
consola.info('Shutting down...');
Expand Down