Skip to content

Fix corepack packageManager detection on monorepos#11811

Merged
kodiakhq[bot] merged 18 commits intomainfrom
corepath-debug
Jul 16, 2024
Merged

Fix corepack packageManager detection on monorepos#11811
kodiakhq[bot] merged 18 commits intomainfrom
corepath-debug

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

@TooTallNate TooTallNate commented Jul 8, 2024

Corepack was failing to be enabled when the packageManager field is set at the root of a monorepo (which is likely a common case). The fix is to crawl up directories and read the package.json at each step to try and find the packageManager value.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 8, 2024

🦋 Changeset detected

Latest commit: 3b8be2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@vercel/static-build Patch
@vercel/build-utils Patch
@vercel/hydrogen Patch
@vercel/redwood Patch
@vercel/remix-builder Patch
@vercel/next Patch
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel-internals/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@TooTallNate TooTallNate changed the title Corepack debugging Fix corepack packageManager detection on monorepos Jul 12, 2024
@TooTallNate TooTallNate marked this pull request as ready for review July 12, 2024 19:10
@kodiakhq kodiakhq bot merged commit 9290c57 into main Jul 16, 2024
@kodiakhq kodiakhq bot deleted the corepath-debug branch July 16, 2024 17:32
ijjk pushed a commit that referenced this pull request Jul 16, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Minor Changes

- Use `nativeFetch` mode when `unstable_singleFetch` is enabled
([#11844](#11844))

### Patch Changes

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

## @vercel/[email protected]

### Patch Changes

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`cfaa83cc9`](cfaa83c),
[`db8452770`](db84527),
[`9290c57b8`](9290c57)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9290c57b8`](9290c57)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9290c57b8`](9290c57)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

## @vercel/[email protected]

### Patch Changes

- Fix missing app route with mixed SSR/SSG dynamic route
([#11862](#11862))

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`9290c57b8`](9290c57)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

## @vercel/[email protected]

### Patch Changes

- Fix corepack `packageManager` detection on monorepos
([#11811](#11811))

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`9290c57b8`](9290c57)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
trek added a commit that referenced this pull request Jul 17, 2024
kodiakhq bot pushed a commit that referenced this pull request Jul 17, 2024
onsclom pushed a commit that referenced this pull request Oct 3, 2024
Corepack was failing to be enabled when the `packageManager` field is set at the root of a monorepo (which is likely a common case). The fix is to crawl up directories and read the `package.json` at each step to try and find the `packageManager` value.
onsclom added a commit that referenced this pull request Oct 3, 2024
Corepack was failing to be enabled when the `packageManager` field is set at the root of a monorepo (which is likely a common case). The fix is to crawl up directories and read the `package.json` at each step to try and find the `packageManager` value.
onsclom added a commit that referenced this pull request Oct 3, 2024
Corepack was failing to be enabled when the `packageManager` field is set at the root of a monorepo (which is likely a common case). The fix is to crawl up directories and read the `package.json` at each step to try and find the `packageManager` value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants