Skip to content

Revert "Revert "Fix corepack packageManager detection on monorepos""#11871

Merged
EndangeredMassa merged 9 commits intomainfrom
revert-11865-revert-11811-corepath-debug
Sep 10, 2024
Merged

Revert "Revert "Fix corepack packageManager detection on monorepos""#11871
EndangeredMassa merged 9 commits intomainfrom
revert-11865-revert-11811-corepath-debug

Conversation

@EndangeredMassa
Copy link
Copy Markdown
Contributor

Reverts #11865

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: 85cae95

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

This PR includes changesets to release 11 packages
Name Type
@vercel/build-utils Patch
@vercel/hydrogen Patch
@vercel/next Patch
@vercel/redwood Patch
@vercel/remix-builder Patch
@vercel/static-build 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

These got lost when merging
@onsclom
Copy link
Copy Markdown
Contributor

onsclom commented Sep 6, 2024

Confirmed this is ready to merge! We were worried that this caused ERR_INVALID_THIS, but it turns out that was just another side effect of #11887 (comment). See more info.

Comment on lines +462 to +464
const packageJson: PackageJson | null = await fs
.readJSON(packageJsonPath)
.catch(() => null);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

suggestion (non-blocking): ‏debug log the error

We should wrap calls like this in a function that can debug log the error and still return null if it fails.

);
const fixture = path.join(base, 'c');
const result = await scanParentDirs(fixture, false, base);
console.log(result);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

suggestion (non-blocking):

Suggested change
console.log(result);

const base = path.join(__dirname, 'fixtures', '41-npm-workspaces-corepack');
const fixture = path.join(base, 'a');
const result = await scanParentDirs(fixture, false, base);
console.log(result);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

suggestion (non-blocking):

Suggested change
console.log(result);

@EndangeredMassa EndangeredMassa merged commit 04e1541 into main Sep 10, 2024
@EndangeredMassa EndangeredMassa deleted the revert-11865-revert-11811-corepath-debug branch September 10, 2024 18:19
onsclom pushed a commit that referenced this pull request Sep 10, 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]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

## [email protected]

### Patch Changes

- Fix gitBranch parameter for `vc env add` command
([#12085](#12085))

- Updated dependencies
\[[`04e15410f`](04e1541)]:
    -   @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
\[[`04e15410f`](04e1541)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`04e15410f`](04e1541)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`04e15410f`](04e1541)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](#11871))

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

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`04e15410f`](04e1541)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
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]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

## [email protected]

### Patch Changes

- Fix gitBranch parameter for `vc env add` command
([#12085](vercel/vercel#12085))

- Updated dependencies
\[[`d8836a0ed`](vercel/vercel@d8836a0)]:
    -   @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
\[[`d8836a0ed`](vercel/vercel@d8836a0)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`d8836a0ed`](vercel/vercel@d8836a0)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`d8836a0ed`](vercel/vercel@d8836a0)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

## @vercel/[email protected]

### Patch Changes

- Revert "Revert "Fix corepack `packageManager` detection on monorepos""
([#11871](vercel/vercel#11871))

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

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`d8836a0ed`](vercel/vercel@d8836a0)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

3 participants