node_runtime: Ignore package-lock.json files when installing internal tools (#52451)

## Context

This prevents tools with native bindings to fail installation, see:
- https://github.com/oxc-project/oxc-zed/issues/145
- https://github.com/napi-rs/napi-rs/pull/2707
- https://github.com/npm/cli/issues/4828

## How to Review

Fixes for https://github.com/oxc-project/oxc-zed/issues/145

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed potential node tools failed/incomplete installation when having
native bindings as optional dependencies

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Nicolas Le CamandPiotr Osiewicz authored and GitHub committed 2026-09-08 21:44:06 +00:00
1 parent 6870a68687
commit 63fc2ea501
1 file changed
+1
+1
View File
@@ -325,6 +325,7 @@ impl NodeRuntime {
.iter()
.map(|p| p.as_str())
.chain([
"--no-package-lock",
"--save-exact",
"--fetch-retry-mintimeout",
"2000",