Skip to content

Conversation

alan-agius4
Copy link
Collaborator

When creating a new project, the packageManager field in package.json will be automatically set to the package manager used to create the project. This helps to ensure that the same package manager is used by all developers working on the project.

The package manager is detected in the following order:

  1. packageManager field in package.json
  2. Angular CLI configuration (angular.json)
  3. Lock files (package-lock.json, yarn.lock, pnpm-lock.yaml)

@alan-agius4 alan-agius4 force-pushed the package-manager-versions-field branch 2 times, most recently from ea222ac to 64f2ffb Compare September 24, 2025 12:24
@alan-agius4 alan-agius4 force-pushed the package-manager-versions-field branch from 64f2ffb to 881e42d Compare September 24, 2025 12:27
@alan-agius4 alan-agius4 reopened this Sep 24, 2025
@alan-agius4 alan-agius4 force-pushed the package-manager-versions-field branch 2 times, most recently from 798e0f1 to 53adf10 Compare September 24, 2025 12:49
@alan-agius4 alan-agius4 requested a review from clydin September 24, 2025 12:49
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 24, 2025
@alan-agius4 alan-agius4 marked this pull request as ready for review September 24, 2025 12:49
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Sep 24, 2025
@alan-agius4 alan-agius4 force-pushed the package-manager-versions-field branch 5 times, most recently from 2057573 to 08b9e4a Compare September 24, 2025 13:13
…new projects

When creating a new project, the `packageManager` field in `package.json` will be automatically set to the package manager used to create the project. This helps to ensure that the same package manager is used by all developers working on the project.

The package manager is detected in the following order:
1. `packageManager` field in `package.json`
2. Angular CLI configuration (`angular.json`)
3. Lock files (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`)
@alan-agius4 alan-agius4 force-pushed the package-manager-versions-field branch from 08b9e4a to 84dfc1b Compare September 24, 2025 13:46
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 24, 2025
@alan-agius4 alan-agius4 merged commit 9f255f2 into angular:main Sep 24, 2025
31 checks passed
@alan-agius4 alan-agius4 deleted the package-manager-versions-field branch September 24, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants