Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-payload-app does not read packageManager value in monorepo #7084

Closed
denolfe opened this issue Jul 9, 2024 · 2 comments
Closed

create-payload-app does not read packageManager value in monorepo #7084

denolfe opened this issue Jul 9, 2024 · 2 comments

Comments

@denolfe
Copy link
Member

denolfe commented Jul 9, 2024

Link to reproduction

No response

Payload Version

3.0.0-beta.59

Node Version

20

Next.js Version

15

Describe the Bug

When in a monorepo, the packageManager value in the root package.json and nested package.json are not evaluated. This causes it to use npm incorrectly. The .npmrc also does not seem to be taken into account.

Reproduction Steps

  • npx create-payload-app inside of monorepo

Adapters and Plugins

No response

@denolfe denolfe added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jul 9, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jul 29, 2024
@denolfe
Copy link
Member Author

denolfe commented Jul 29, 2024

Package manager detection has been improved in recent versions of cpa. I don't think monorepo detection is worth supporting currently. For the time being, --use-pnpm, --use-yarn, etc can be used to force the package manager choice.

@denolfe denolfe closed this as completed Jul 29, 2024
Copy link

github-actions bot commented Sep 6, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant