fix(cli): point missing frontend dist at full build
This commit is contained in:
@@ -324,7 +324,7 @@ export class AppCLIEntry {
|
|||||||
try {
|
try {
|
||||||
return require.resolve('@deepseek-ai/dsh-frontend/dist/index.html')
|
return require.resolve('@deepseek-ai/dsh-frontend/dist/index.html')
|
||||||
} catch {
|
} catch {
|
||||||
throw new Error('dsh: frontend dist not built; run pnpm --filter @deepseek-ai/dsh-frontend build first')
|
throw new Error('dsh: frontend dist not built; run pnpm run build from the repository root first')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export async function newEnglishPage(browser: Browser, height = 1000): Promise<P
|
|||||||
/** Fail loud on a stale checkout instead of testing yesterday's bundle. */
|
/** Fail loud on a stale checkout instead of testing yesterday's bundle. */
|
||||||
export function requireDist(): void {
|
export function requireDist(): void {
|
||||||
if (!existsSync(DIST_INDEX)) {
|
if (!existsSync(DIST_INDEX)) {
|
||||||
throw new Error('web app dist not built — run `pnpm --filter @deepseek-ai/dsh-frontend build` (pnpm run test:web does this first)')
|
throw new Error('web app dist not built — run `pnpm run build` from the repository root (`pnpm run test:web` does this first)')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user