Skip to content

Commit b05b011

Browse files
committed
fix: add banner to config in 'init' command
1 parent 84ff1ee commit b05b011

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/cli/commands/init.ts

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,23 @@ export default declareCommand({
7373

7474
await writeFile(
7575
"conver.json",
76-
JSON.stringify(
77-
{
78-
$schema: `./node_modules/conventional-versioning/schema.json`,
79-
options: {},
80-
branch,
81-
base,
82-
},
83-
undefined,
84-
2,
85-
),
76+
[
77+
"/*",
78+
" This config file manages the options and current state for versioning.",
79+
" See https://github.com/tscpp/conventional-versioning#readme.",
80+
"*/",
81+
].join("\n") +
82+
"\n" +
83+
JSON.stringify(
84+
{
85+
$schema: `./node_modules/conventional-versioning/schema.json`,
86+
options: {},
87+
branch,
88+
base,
89+
},
90+
undefined,
91+
2,
92+
),
8693
);
8794

8895
logger.info("Created conver.json file!");

0 commit comments

Comments
 (0)