Skip to content

Commit

Permalink
Fixing unit test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
“Thavachelvam authored and thavaahariharangit committed Jun 25, 2024
1 parent c5455af commit 15ad4a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def write_final_package_json_files(version)
content = updated_package_json_content(file)
source = " \"dependencies\""
target = " \"packageManager\": \"pnpm@#{version}.0.0\",\n \"dependencies\""
content = content.to_s.gsub(source, target)
content = content.to_s.gsub(source, target) unless content.to_s.include?("Error:") || version.nil?
File.write(path, content)
end
end
Expand Down

0 comments on commit 15ad4a5

Please sign in to comment.