Skip to content

Could someone explain requirements a bit more? #2340

Answered by tido64
jonathanj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jonathanj.

Does it refer to this profile declared in the presets?

Yes, that's correct. Specifically, this profile: packages/align-deps/src/presets/microsoft/react-native/profile-0.70.ts

What am trying to do is use align-deps for a non-RN (utility) package in a monorepo containing RN apps, but I can't omit requirements so I'm trying to understand how to correctly define it when the package does not (and should not) depend on RN itself.

In the requirements section, you specify that your package needs. Instead of react-native@0.70, you could state react@17 if your package requires React 17.x.

I hope that makes sense.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jonathanj
Comment options

@tido64
Comment options

@jonathanj
Comment options

Answer selected by jonathanj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants