File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -290,9 +290,12 @@ def handle_configure(
290290 )
291291 prepared_config = _prepare_new_library_config (new_library_config )
292292
293- # Create a `CHANGELOG.md` and `docs/CHANGELOG.md` file for the new library
293+ is_mono_repo = _is_mono_repo ( input )
294294 library_id = _get_library_id (prepared_config )
295- _create_new_changelog_for_library (library_id , output )
295+ path_to_library = f"packages/{ library_id } " if is_mono_repo else "."
296+ if not Path (f"{ repo } /{ path_to_library } " ).exists ():
297+ # Create a `CHANGELOG.md` and `docs/CHANGELOG.md` file for the new library
298+ _create_new_changelog_for_library (library_id , output )
296299
297300 # Write the new library configuration to configure-response.json.
298301 _write_json_file (f"{ librarian } /configure-response.json" , prepared_config )
You can’t perform that action at this time.
0 commit comments