Skip to content

Commit

Permalink
removed unwanted spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
honeyankit committed Aug 9, 2023
1 parent 0f412bb commit 642c17b
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,10 @@ def clean_npmrc_in_path(yarn_lock)
dirs.pop
while dirs.any?
npmrc = dirs.join("/") + "/.npmrc"

if File.exist?(npmrc)
# If the .npmrc file exists, clean it
File.write(npmrc, File.read(npmrc).gsub(/\$\{.*?\}/, ""))
end

dirs.pop
end
end
Expand Down

0 comments on commit 642c17b

Please sign in to comment.