mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +01:00
Add yarn-deduplicate
step to README (#13004)
The instructions for changing dependencies have been updated to include the `yarn yarn-deduplicate` step. This command removes duplicate dependencies in the lockfile where possible while keeping everything in-range, and it's checked in CI in the `test-yarn-dedupe` job that was added in #12737.
This commit is contained in:
parent
f9eaf2f005
commit
af3bdbbfc9
@ -61,6 +61,7 @@ Whenever you change dependencies (adding, removing, or updating, either in `pack
|
||||
|
||||
* `yarn.lock`:
|
||||
* Run `yarn setup` again after your changes to ensure `yarn.lock` has been properly updated.
|
||||
* Run `yarn yarn-deduplicate` to remove duplicate dependencies from the lockfile.
|
||||
* The `allow-scripts` configuration in `package.json`
|
||||
* Run `yarn allow-scripts auto` to update the `allow-scripts` configuration automatically. This config determines whether the package's install/postinstall scripts are allowed to run. Review each new package to determine whether the install script needs to run or not, testing if necessary.
|
||||
* Unfortunately, `yarn allow-scripts auto` will behave inconsistently on different platforms. macOS and Windows users may see extraneous changes relating to optional dependencies.
|
||||
|
Loading…
Reference in New Issue
Block a user