Skip to content

Commit

Permalink
chore: update pin_dependencies.py (#9051)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Oct 5, 2022
1 parent d4c6ff1 commit bafdb47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/pin_dependencies.py
Expand Up @@ -22,14 +22,15 @@


def main():
for package_json_path in glob("**/package.json"):
for package_json_path in glob("packages/*/package.json") + ["website/package.json"]:
print(package_json_path)
tmp_file_path = mktemp()
with open(tmp_file_path, 'w') as tmp_file:
with open(package_json_path, "r") as package_json_file:
start_replace = False
for line in package_json_file.readlines():
if not start_replace:
if line.startswith("devDependencies") or line.startswith("dependencies"):
if "devDependencies" in line or "dependencies" in line:
start_replace = True
else:
line = line.replace('^', '')
Expand Down

0 comments on commit bafdb47

Please sign in to comment.