Files
hapi/cli/src/runtime/embeddedAssets.stub.ts
T
weishu cf04937355 feat(cli): refactor embedded assets with Bun-specific and stub implementations
Split embedded assets loading into runtime-specific variants using package.json imports field. Bun-compiled binaries use the full implementation with file assets, while stub fallback provides clear error for non-Bun runtimes.
2025-12-20 23:46:02 +08:00

9 lines
244 B
TypeScript

export interface EmbeddedAsset {
relativePath: string;
sourcePath: string;
}
export async function loadEmbeddedAssets(): Promise<EmbeddedAsset[]> {
throw new Error('Embedded assets are only available in Bun-compiled binaries.');
}