diff --git a/utils/pin_dependencies.py b/utils/pin_dependencies.py index 8e42038eb8c..f86348adc80 100755 --- a/utils/pin_dependencies.py +++ b/utils/pin_dependencies.py @@ -32,7 +32,8 @@ def main(): if line.startswith("devDependencies") or line.startswith("dependencies"): start_replace = True else: - tmp_file.write(line.replace('^', '')) + line = line.replace('^', '') + tmp_file.write(line) rename(tmp_file_path, package_json_path) if __name__ == "__main__": diff --git a/website/package-lock.json b/website/package-lock.json index d91ade0365e..c1f1244c9c4 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -12,7 +12,7 @@ "@docusaurus/preset-classic": "2.0.1", "@easyops-cn/docusaurus-search-local": "0.26.1", "@mdx-js/react": "1.6.22", - "clsx": "^1.2.1", + "clsx": "1.2.1", "prism-react-renderer": "1.3.5", "react": "17.0.2", "react-dom": "17.0.2"