Repository navigation
chore: remove the dead concurrently dev dependency - #13193
Conversation
The only consumer of concurrently was the prepareFixtures script of `@pnpm/installing.deps-restorer`, and that script has been dead since the external `@pnpm/registry-mock` package (which shipped the registry-mock bin the script starts with) was replaced by the in-repo pnpr server: it fails at 'registry-mock prepare' before concurrently is ever invoked. The fixture lockfiles it used to regenerate are committed to git, and the jest with-registry preset manages the registry server lifecycle itself (child_process spawn + tree-kill), so nothing needs concurrently's --kill-others/--success=first orchestration anymore. Remove the unused root devDependency, the deps-restorer devDependency together with its dead prepareFixtures/runPrepareFixtures scripts, and the concurrently catalog entry. The root devDependency was not referenced by any root script at all.
PR Summary by QodoRemove dead concurrently devDependency and fixture scripts
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Confidence Score: 5/5This looks safe to merge.
Reviews (1): Last reviewed commit: "chore: remove the dead concurrently dev ..." | Re-trigger Greptile |
Code Review by Qodo
1. Missing changeset for deps-restorer
|
| "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", | ||
| "test": "pn compile && pn .test", | ||
| "prepublishOnly": "tsgo --build", | ||
| "runPrepareFixtures": "node ../../pnpm/bin/pnpm.mjs i -r -C test/fixtures --no-shared-workspace-lockfile --no-link-workspace-packages --lockfile-only --registry http://localhost:4873/ --ignore-scripts --force --no-strict-peer-dependencies", |
There was a problem hiding this comment.
1. Missing changeset for deps-restorer 📘 Rule violation ⚙ Maintainability
@pnpm/installing.deps-restorer was modified (scripts/devDependencies), but no corresponding .changeset/ entry is present to version/release the published package. This can cause the package change to be omitted from releases and changelogs.
Agent Prompt
## Issue description
A published package (`@pnpm/installing.deps-restorer`) was changed in this PR, but there is no changeset to record and version the change.
## Issue Context
This PR removes the `prepareFixtures`/`runPrepareFixtures` scripts and the `concurrently` devDependency from `@pnpm/installing.deps-restorer`, which is a published workspace package.
## Fix Focus Areas
- pnpm11/installing/deps-restorer/package.json[31-99]
- .changeset/*[create new file]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ckfile entries (#13196) Removing one dev dependency could flip other packages' open-range deps (e.g. jest's `@types/node: '*'`) to their newest versions, as seen in #13193. Three lockfile-resolution-reuse gaps caused still-satisfied lockfile entries to be re-resolved from the registry: 1. Direct deps using the `catalog:` protocol reach record_changed_direct_deps with the protocol already resolved to the catalog's range, while the importer snapshot records the literal `catalog:` form. Every catalog-managed dep therefore looked changed on every install, and the changed-direct-dep gate declined subtree reuse for every package depending on one. The comparison now consults the lockfile's `catalogs:` snapshot, so only a real catalog range change counts as a change. 2. Auto-installed (hoisted) peers were recorded as changed direct deps on every install: they have no importer-snapshot entry to compare against, so they always counted as "new". Recording now runs only for the importer's manifest wave, never for hoist-round installs. 3. A node that resolved freshly but landed on its previously recorded version still disabled reuse for its entire subtree (ReuseSource::PriorOnly). Peer back-edge cycles (browserslist <-> update-browserslist-db, eslint <-> eslint-utils, jest-resolve <-> jest-pnp-resolver) force such fresh resolves on every install, so open-ranged deps below them re-picked the registry's newest version on every partial install. Children of a parent that landed on its prior version now re-enter the reuse gate with their recorded refs, faithful to pnpm's `parentPkg.updated ? undefined : resolvedDependencies` arm, and the PriorOnly variant is removed. The TypeScript CLI is unaffected: catalogs resolve inside its resolver chain so specifiers compare raw-to-raw, and its reuse predicate already keeps child refs alive under a non-updated parent. This change ports that behavior to pacquet.
Summary
Removes the
concurrentlydev dependency, which is dead code.Its only consumer was the
prepareFixturesscript of@pnpm/installing.deps-restorer, which started the mock registry alongside a--lockfile-onlyinstall (concurrently --success=first --kill-others registry-mock "pnpm run runPrepareFixtures"). That script has been broken since the external@pnpm/registry-mockpackage — the provider of theregistry-mockbin — was replaced by the in-repo pnpr server: it fails atregistry-mock preparebeforeconcurrentlyis ever invoked. The fixture lockfiles it used to regenerate are committed to git, and the jestwith-registrypreset manages the registry server lifecycle itself (child_processspawn +tree-kill), so nothing needsconcurrently's orchestration anymore.Changes:
package.json: dropped theconcurrentlydevDependency (no root script referenced it).pnpm11/installing/deps-restorer/package.json: dropped the devDependency and deleted the deadprepareFixtures/runPrepareFixturesscripts.pnpm-workspace.yaml: removed theconcurrently: 10.0.3catalog entry.pnpm-lock.yaml: reinstall removedconcurrentlyand its orphaned transitives. A few jest snapshots also re-deduped their internal@types/node: *dependency from22.20.1to the26.1.1instance already present in the graph — expected churn from the root importer re-resolving.The deps-restorer fixture lockfiles can still be regenerated manually: build storage with
pnpr-preparefrompnpr/.fixtures/packages, serve it withpnpr, and re-run the recursive--lockfile-onlyinstall against it (the same flow thewith-registryjest globalSetup automates).Squash Commit Body
Checklist
None of the checklist items apply: this is a dev-only cleanup with no user-visible change, so there is nothing to port to the Rust CLI, no changeset (no published behavior changes — only dead scripts and devDependencies are removed), no tests to add, and no documentation to update.
Written by an agent (Claude Code, claude-fable-5).
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.