Skip to content

Commit c1cdb01

Browse files
committed
Revert unrelated change
1 parent e01286c commit c1cdb01

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/cli/src/commands/init/__tests__/command.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,14 @@ describe("init", () => {
294294

295295
expect(keys).toEqual([
296296
"$schema",
297-
"changelog",
298297
"baseBranch",
299-
"commit",
300298
"access",
299+
"format",
300+
"changelog",
301+
"commit",
301302
"ignore",
302303
"fixed",
303304
"linked",
304-
"format",
305305
"updateInternalDependencies",
306306
]);
307307
});

‎packages/cli/src/commands/init/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ async function getInteractiveConfig() {
4141
false,
4242
);
4343

44-
config.access = (await cli.askList(
44+
config.access = await cli.askList<AccessType>(
4545
"Should packages be published publicly or privately by default?",
4646
[
4747
{ label: "Private", value: "restricted" },
4848
{ label: "Public", value: "public" },
4949
],
50-
)) as AccessType;
50+
);
5151

5252
const baseBranchInput = await cli.askQuestion(
5353
"Which base branch should be used?",

‎packages/types/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export type WrittenConfig = {
101101
commit?: boolean | readonly [string, null | Record<string, unknown>] | string;
102102
fixed?: Fixed;
103103
linked?: Linked;
104-
access?: AccessType;
104+
access?: AccessType | "private";
105105
baseBranch?: string;
106106
changedFilePatterns?: readonly string[];
107107
format?: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;

0 commit comments

Comments
 (0)