// The whole package: turn `create-ultimate [flags]` into `x new [flags]`. No // templates, no prompts, no second code path — this exists only so `bunx create-ultimate` works // before @ultimat3/cli is installed. import { dispatch } from '@ultimat3/cli'; export interface CreateAppOptions { readonly argv: readonly string[]; readonly cwd: string; readonly write: (line: string) => void; } export async function createApp(options: CreateAppOptions): Promise { return dispatch({ argv: ['new', ...options.argv], // What the caller actually typed, so every `fix:` `x new` would have written names a command // that runs HERE. `bunx`, not `npx`: this package is Bun-only and its `bin` needs a Bun. invocation: 'bunx create-ultimate', cwd: options.cwd, env: Bun.env, bunVersion: Bun.version, write: options.write, }); }