Skip to content

Use one recommended JavaScript package manager in generated projects #705

Backlog

Description

@Espoir-Loem

Problem

Generated projects pick a JavaScript package manager by lockfile, then bun, pnpm, npm in that order. A bootstrap cannot install one manager when Nexy may use three, and the docs offer three install commands for the same action.

What we know

  • nexy/helpers/common/package_manager.py lines 42 to 56: committed lockfile wins, then bun, pnpm, npm; yarn only from yarn.lock.
  • nexy/helpers/common/vite_launch.py lines 92 to 138 runs Vite with Node, then bun, then manager runners.
  • The framework repository itself uses pnpm in CONTRIBUTING.md lines 74 to 87 and in CI lines 88 to 99.
  • docs/reference/security.md lines 23 to 28 uses generic npm commands.

Proposal

Choose one recommended manager for projects Nexy creates. Proposal: pnpm, because the framework repository already pins it and commits two pnpm lockfiles. Generated projects get a pnpm lockfile and docs use pnpm commands. For an existing project that gets nexy init, keep honoring a committed lockfile so Nexy does not rewrite a user's toolchain; that case is separate from a generated project.

Acceptance

  • One preferred manager is named in the code and in the generated README.
  • Tests cover a fresh project and an existing project with a committed lockfile.
  • The bootstrap script installs only that manager (issue 2).
  • No claim that another manager is unsupported is written unless it is true.

Activity

  1. added
    enhancement
    javascript
    area:frontend
    difficulty:intermediate
    on Nov 28, 2026
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

    area:frontenddifficulty:intermediateenhancementjavascript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions