@suluk/platform - v0.6.0
    Preparing search index...

    Interface GenerateOptions

    interface GenerateOptions {
        run: (cmd: string, args: string[]) => Promise<void>;
        write: (path: string, content: string) => Promise<void>;
        read?: (path: string) => Promise<string | null>;
        log?: (msg: string) => void;
    }
    Index

    Properties

    Properties

    run: (cmd: string, args: string[]) => Promise<void>

    run a command — the CLI spawns bunx shadcn add <ref>; a test records.

    write: (path: string, content: string) => Promise<void>

    write a file (path relative to the target cwd).

    read?: (path: string) => Promise<string | null>

    read a file (null when absent) — used to MERGE the generated package.json with the app's existing one (so app-added deps/scripts survive a regenerate) and to leave an existing tsconfig/components.json untouched. Optional: without it, the config files are written as the fresh baseline.

    log?: (msg: string) => void