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

feat(js): add skipPackageManager option to build executors in order to skip generating "packageManager" entry in package.json #27518

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Aug 19, 2024

This PR adds skipPackageManager option to several build executors in order to disable generating the packageManager field in the resulting package.json file. This field may be problematic on different platforms so we want a way to work around it.

Affected executors:

  • @nx/webpack:webpack
  • @nx/vite:build
  • @nx/next:build
  • @nx/remix:build

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #27027

@jaysoo jaysoo requested review from a team and Coly010 as code owners August 19, 2024 19:20
Copy link

vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Aug 19, 2024 7:47pm

…o skip generating "packageManager" entry in package.json
@jaysoo jaysoo merged commit 83237a8 into master Aug 20, 2024
6 checks passed
@jaysoo jaysoo deleted the issue/27027 branch August 20, 2024 13:18
FrozenPandaz pushed a commit that referenced this pull request Aug 21, 2024
…o skip generating "packageManager" entry in package.json (#27518)

This PR adds `skipPackageManager` option to several build executors in
order to disable generating the `packageManager` field in the resulting
`package.json` file. This field may be problematic on different
platforms so we want a way to work around it.

Affected executors:
- `@nx/webpack:webpack`
- `@nx/vite:build`
- `@nx/next:build`
- `@nx/remix:build`

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #27027

(cherry picked from commit 83237a8)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

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

Successfully merging this pull request may close these issues.

Way to disable packageManager being added to the generated package.json
2 participants