Skip to content

feat(package-manager): add pnpm support#624

Open
Erikvl87 wants to merge 1 commit into
athombv:developfrom
Erikvl87:feature/pnpm-support
Open

feat(package-manager): add pnpm support#624
Erikvl87 wants to merge 1 commit into
athombv:developfrom
Erikvl87:feature/pnpm-support

Conversation

@Erikvl87
Copy link
Copy Markdown

Adds pnpm support to the Homey CLI. This should not introduce any breaking changes.

Detection order is the packageManager field in package.json, then the lockfile, then a smart default that picks the only installed manager when exactly one is on PATH (otherwise npm). Both lockfiles with no field soft-default to npm.

homey app create probes which managers are installed and prompts when both are available, pinning the choice into the new app's packageManager field so subsequent CLI runs are deterministic.

The CLI was previously hardcoded to `npm`, blocking developers who prefer pnpm's strict `node_modules` layout and shared dependency store. This change introduces a `PackageManager` abstraction that dispatches commands to either to npm or pnpm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant