Skip to content

Conversation

@devversion
Copy link
Member

This commit adds support for working with pnpm as primary package manager. The Angular CLI repository will soon drop Yarn and this will be necessary then.

There is no need for testing of anything as we don't generally test any external commands, but in the future, when we drop Yarn completely here, we can update some other assertions to "recognize pnpm".

@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Mar 5, 2025
@devversion devversion marked this pull request as ready for review March 5, 2025 11:14
@devversion devversion force-pushed the pnpm-release-toolk branch from b55d658 to 6156119 Compare March 5, 2025 11:21
This commit adds support for working with `pnpm` as primary package
manager. The Angular CLI repository will soon drop Yarn and this
will be necessary then.

There is no need for testing of anything as we don't generally test any
external commands, but in the future, when we drop Yarn completely here,
we can update some other assertions to "recognize pnpm".
@devversion devversion force-pushed the pnpm-release-toolk branch from 6156119 to d43b94e Compare March 5, 2025 12:02
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, just the lint errors need to be corrected.

return existsSync(join(repoPath, 'pnpm-lock.yaml')) && !existsSync(join(repoPath, 'yarn.lock'));
}

async getPackageSpec(repoPath: string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getPackageSpec as a name was not obviously to me what was being returned. Primarily because I asssociated spec with testing.

I don't know if there is a better naming option, but it was a bit confusing to me on first read.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label Mar 5, 2025
@devversion devversion removed the request for review from clydin March 5, 2025 20:04
@devversion
Copy link
Member Author

This PR was merged into the repository by commit 17e5969.

The changes were merged into the following branches: main

@devversion devversion closed this in 17e5969 Mar 5, 2025
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants