这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@markrickert
Copy link
Member

Description

ignited apps (pre v10) used to ship with yarn-only and a few patches that needed to be applied to get the dependencies working.

Now, we offer users yarn, npm, bun, and pnpm as options for an ignited app.

yarn berry, bun, and pnpm all have their own patching system. Because a newly ignited app no longer needs any patches, we can remove this legacy configuration and package script references.

slack conversation

Checklist

  • README.md and other relevant documentation has been updated with my changes
  • I have manually tested this, including by generating a new app locally (see docs).

ignited apps ([pre v10](https://github.com/infinitered/ignite/tree/v9.10.1/boilerplate/patches)) used to ship with yarn-only and a few patches that needed to be applied in the early days of react-native.

Now, we offer users `yarn`, `npm`, `bun`, and `pnpm` as options for an ignited app.

yarn berry, bun, and pnpm all have their own patching system. Because a newly ignited app no longer needs any patches, we can remove this legacy configuration and package script references.
@markrickert markrickert force-pushed the mrickert/remove-patch-package branch from e876dc3 to 99244b0 Compare May 16, 2025 19:03
Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

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

🚀

Comment on lines +120 to +121
- `yarn@3` - use [`yarn patch` tool](https://v3.yarnpkg.com/features/protocols#patch).
- `yarn@4` - use [`yarn patch` tool](https://yarnpkg.com/features/patching).
Copy link
Contributor

Choose a reason for hiding this comment

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

you can still use patch package with these versions as well, couldn't you?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually no (but maybe yes with a bunch more configuration)... which is one of the main reasons I still use yarn 1, even though it's slow. yarn berry changed how the postinstall script runs so it's not nearly as reliable anymore. yarnpkg/yarn#5476

@markrickert markrickert merged commit a05ff79 into master May 21, 2025
3 checks passed
@markrickert markrickert deleted the mrickert/remove-patch-package branch May 21, 2025 17:16
@infinitered-circleci
Copy link
Collaborator

🎉 This PR is included in version 10.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants