Use one recommended JavaScript package manager in generated projects
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, python
- Domain
- tooling
Research direction
Start with nexy/helpers/common/package_manager.py and nexy/helpers/common/vite_launch.py, then review the pnpm setup in CONTRIBUTING.md and CI. Locate the fresh-project generation path, generated README, and relevant tests; done means fresh projects name and use one preferred manager, while existing projects with committed lockfiles retain their current manager.
Written by the indexing model from the issue text.
Description
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.pylines 42 to 56: committed lockfile wins, then bun, pnpm, npm; yarn only fromyarn.lock.nexy/helpers/common/vite_launch.pylines 92 to 138 runs Vite with Node, then bun, then manager runners.- The framework repository itself uses pnpm in
CONTRIBUTING.mdlines 74 to 87 and in CI lines 88 to 99. docs/reference/security.mdlines 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.
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 265
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli difficulty:intermediate enhancement
Difficulty 2/5 Half a day Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days