diff --git a/src/shared/options/readOptions.test.ts b/src/shared/options/readOptions.test.ts index 2be4a603c..b9b3dec79 100644 --- a/src/shared/options/readOptions.test.ts +++ b/src/shared/options/readOptions.test.ts @@ -112,6 +112,7 @@ vi.mock("./createOptionDefaults/index.js", () => ({ createOptionDefaults() { return { author: vi.fn(), + bin: vi.fn(), description: vi.fn(), email: vi.fn(), funding: vi.fn(), diff --git a/src/shared/options/readOptions.ts b/src/shared/options/readOptions.ts index 75aab677d..9d5256d62 100644 --- a/src/shared/options/readOptions.ts +++ b/src/shared/options/readOptions.ts @@ -264,6 +264,7 @@ export async function readOptions( ...options, access: options.access ?? "public", author: options.author ?? (await defaults.owner()), + bin: options.bin ?? (await defaults.bin()), description: options.description, directory: options.directory ?? promptedOptions.directory ?? options.repository,