@@ -518,9 +518,15 @@ def _copy_file_to_docs(output: str, library_id: str, filename: str):
518518 docs_path = f"{ output } /{ path_to_library } /docs"
519519 destination_path = f"{ docs_path } /{ filename } "
520520
521+ print (f"[_copy_file_to_docs] source_path: { source_path } " )
522+ print (f"[_copy_file_to_docs] docs_path: { docs_path } " )
523+ print (f"[_copy_file_to_docs] destination_path: { destination_path } " )
524+ print (f"[_copy_file_to_docs] os.path.lexists(source_path): { os .path .lexists (source_path )} " )
525+
521526 # If the source file doesn't exist (not even as a broken symlink),
522527 # there's nothing to copy.
523528 if not os .path .lexists (source_path ):
529+ print (f"[_copy_file_to_docs] Source file does not exist, returning." )
524530 return
525531
526532 content = _read_text_file (source_path )
@@ -561,11 +567,13 @@ def _copy_changelog_to_docs(output: str, library_id: str):
561567 """
562568 path_to_library = f"packages/{ library_id } "
563569 source_path = f"{ output } /{ path_to_library } /CHANGELOG.md"
570+ print (f"[_copy_changelog_to_docs] Initial source_path: { source_path } " )
564571
565572 # If the source CHANGELOG.md doesn't exist, create it at the source location.
566573 if not os .path .lexists (source_path ):
567574 content = "# Changelog\n "
568575 _write_text_file (source_path , content )
576+ print (f"[_copy_changelog_to_docs] Created CHANGELOG.md at: { source_path } " )
569577
570578 # Now, copy the (guaranteed to exist) source CHANGELOG.md to the docs directory.
571579 _copy_file_to_docs (output , library_id , "CHANGELOG.md" )
0 commit comments