Repository navigation
chore(deps): remove legacy npm-run-all across monorepo - #7173
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the 'npm-run-all' dependency across the entire workspace, including the core packages and various plugins. The scripts that previously used 'npm-run-all' have been refactored to run sequentially using 'pnpm' and the '&&' operator. The lockfiles have been updated to reflect the removal of this dependency and its transitive packages. I have no feedback to provide.
pavelgj
approved these changes
Nov 11, 2026
MichaelDoyle
force-pushed
the
md/remove-npm-run-all
branch
from
November 12, 2026 19:12
4816a84 to
9eb1481
Compare
MichaelDoyle
force-pushed
the
md/remove-npm-run-all
branch
from
November 12, 2026 19:43
9eb1481 to
c6eca41
Compare
- Replace sequential npm-run-all scripts with native pnpm && chaining across root, js, and tests - Remove unused npm-run-all devDependencies from doc-snippets and samples - Prune npm-run-all and 100+ transitive Node 4/6 polyfill packages (-2,300+ lockfile lines) across root, js, and tests lockfiles
MichaelDoyle
force-pushed
the
md/remove-npm-run-all
branch
from
November 12, 2026 21:24
c6eca41 to
648bda1
Compare
MichaelDoyle
enabled stacked auto-merge (squash)
November 12, 2026 21:27
pavelgj
approved these changes
Nov 12, 2026
ifielker
approved these changes
Nov 12, 2026
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the unmaintained
npm-run-all@4.1.5dependency (last published in 2018) across all 30 remainingpackage.jsonfiles in the monorepo (root,js/*,js/plugins/*, andtests) and replaces sequential script invocations with nativepnpmchaining (&&).Result: Prunes 244 legacy package snapshots (-2,330+ lockfile lines) across
pnpm-lock.yaml,js/pnpm-lock.yaml, andtests/pnpm-lock.yaml, and resolves 12 open Dependabot security alerts (3 Critical, 7 High, 2 Medium).Why
pnpmLeftover:npm-run-allwas originally added in Feb 2024 (Renamed ollama plugin togenkitx-ollama#97) before the repo migrated topnpmworkspaces (refactor: consolidated registry into a class, made registry hierarchical #639 / [Docs] which models supports tools? #661) purely as shorthand to avoid repeatingnpm runin sequential scripts, and was subsequently copied across plugin templates. Every remaining call site was 100% sequential (no globs, no--parallel), andnpm-run-allitself simply spawned childpnpm run <step>processes one by one.npm-run-all@4.1.5targets Node 4/6 and pulls in 100+ transitive ES5/ES6 polyfills and legacy packages (es-abstract,string.prototype.*,typed-array-*,read-pkg@3,shell-quote@1.8.x,minimatch@3.1.2,brace-expansion@1.1.x).Quantified Dependency & Security Impact
Lockfile Footprint Reduction
pnpm-lock.yaml(root)337214-1,174tests/pnpm-lock.yaml277179-880js/pnpm-lock.yaml2,5872,564-2763,2012,957Open Dependabot Security Alerts Resolved (12 Alerts: 3 Critical, 7 High, 2 Medium)
Because
npm-run-all@4.1.5has not had a release since 2018, its pinned transitive ranges kept the following vulnerable packages locked in the dependency graph:#1828js/pnpm-lock.yamlshell-quote@1.8.3(0 left)quote()#1829pnpm-lock.yamlshell-quote@1.8.3(0 left)quote()#1834tests/pnpm-lock.yamlshell-quote@1.8.1(0 left)quote()#2243js/pnpm-lock.yamlshell-quote@1.8.3(0 left)parse()#2251pnpm-lock.yamlshell-quote@1.8.3(0 left)parse()#2361tests/pnpm-lock.yamlshell-quote@1.8.1(0 left)parse()#2250pnpm-lock.yamlbrace-expansion@1.1.12(0 left){}groups#2359tests/pnpm-lock.yamlbrace-expansion@1.1.11(0 left){}groups#752pnpm-lock.yamlminimatch@3.1.2(0<3.1.3left)matchOne()ReDoS backtracking#751tests/pnpm-lock.yamlminimatch@3.1.2(0 left)matchOne()ReDoS backtracking#2959pnpm-lock.yamlbrace-expansion@1.1.12(0 left)#3130tests/pnpm-lock.yamlbrace-expansion@1.1.11(0 left)Key Changes
npm-run-allscripts with nativepnpm ... && pnpm ...acrosspackage.json,js/package.json,js/core,js/ai,js/genkit, all 23js/plugins/*, andtests/package.json.npm-run-alldevDependenciesfromjs/doc-snippets/package.json.npm-run-alland its transitive dependency tree frompnpm-lock.yaml,js/pnpm-lock.yaml, andtests/pnpm-lock.yaml.