From bafdb4784ccfe4a35fec9e6d366e4d1b40a82e1b Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Wed, 5 Oct 2022 16:19:18 +0200 Subject: [PATCH] chore: update pin_dependencies.py (#9051) --- utils/pin_dependencies.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/pin_dependencies.py b/utils/pin_dependencies.py index f86348adc80..d72761f2992 100755 --- a/utils/pin_dependencies.py +++ b/utils/pin_dependencies.py @@ -22,14 +22,15 @@ from tempfile import mktemp 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('^', '')