Revert "bindings/javascript: Add optional dependencies"

This reverts commit 9d7a77efde. It does
not work because the native packages don't yet exists at that point.
Let's fix the Github workflows instead.
This commit is contained in:
Pekka Enberg
2025-07-29 12:36:12 +03:00
parent 150e888cc0
commit 2d2f416e2c
2 changed files with 2 additions and 14 deletions

View File

@@ -79,12 +79,6 @@ def update_package_json(dir_path, new_version): # noqa: C901
# Update version regardless of current value
package_data["version"] = new_version
# Update optionalDependencies if they exist
if "optionalDependencies" in package_data:
for dep_name in package_data["optionalDependencies"]:
if dep_name.startswith("@tursodatabase/turso-"):
package_data["optionalDependencies"][dep_name] = new_version
# Write updated package.json
with open(package_path, "w") as f:
json.dump(package_data, f, indent=2)