Pass production & development requirements in @rnx-kit/align-deps's cli() & --requirements flag #2142
Labels
enhancement
New feature or request
feature: align-deps
This is related to align-deps
good first issue
Good for newcomers
In dep-check-> cli() function accepts the parameter
--vigilant
. This param takes a string, where the first one is considered asreactNativeDevVersion
& rest of them are considered asreactNativeVersion
fields in reference to the dep-check package-level config.In align-deps, the
--requirements
field is the replacement of the--vigilant
param. But how do we pass the requirements into cli() function or --requirements flag which will be used for/asproduction
&development
fields in align-deps package-level config.When using the align-deps in monorepo, and running the tool using cli() funciton or using
--requirements
flag inyarn rnx-align-deps
, I dont have any possible way to pass the "production" requirements which will align "peerDependencies" section of package.json(s). Having package-level configurations is not so feasible in our case as the number of packages is very high in number.It would be really nice to have the ability to pass the requirements with "production" & "development" fields or a way to do it.
Affected Package
@rnx-kit/align-deps
Version
2.0.3
Steps to Reproduce
Run the yarn rnx-align-deps --requirements [email protected] --presets "path-to-my-preset` in a monorepo. this will only align the dependencies in the dependencies & dev dependencies section. peer dependencies are not aligned.
The text was updated successfully, but these errors were encountered: