Skip to content

Add nx update to upgrade installed modules #729

Backlog

Description

@Espoir-Loem

Problem

docs/guides/install-modules.md:18-20 tells a developer to upgrade a module by running
nx add @acme/auth again, or by changing the pin. With several modules recorded in
.nexy/modules.json, there is no single command that refreshes them all, reports what changed and
leaves pinned versions alone.

Change to make

Add nx update for modules. It reads .nexy/modules.json, resolves the newest allowed release
for each unpinned module from useModuleRegistry, keeps exact pins, and reuses the same checksum,
compatibility, file, dependency and config-hook path as nx add. It prints one plain line per
module with the old and the new version, skips modules that are already current, and writes the
manifest only after a successful update. Add --migrate with the same meaning as in nx add, and
--dry-run to list the changes without writing them.

Out of scope

Framework upgrades (nx upgrade) and publishing releases to the registry have their own issues.

Checks

Unit tests with a fake registry cover one unpinned upgrade, one pinned module left unchanged, a
checksum failure, a compatibility failure and a dry run. The command appears in the CLI overview
and help. docs/reference/cli.md and docs/guides/install-modules.md describe it, with
translations regenerated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions