Skip to content

Move remx from devDependencies#7174

Merged
yogevbd merged 1 commit into
masterfrom
yogevbd-patch-1
Jul 4, 2021
Merged

Move remx from devDependencies#7174
yogevbd merged 1 commit into
masterfrom
yogevbd-patch-1

Conversation

@yogevbd

@yogevbd yogevbd commented Jul 4, 2021

Copy link
Copy Markdown
Collaborator

Since we use remx as the store in Navigation mock, it is no longer a dev dependency.

@yogevbd yogevbd merged commit 0398115 into master Jul 4, 2021
@yogevbd yogevbd deleted the yogevbd-patch-1 branch July 4, 2021 09:07
@mikeduminy

Copy link
Copy Markdown

@yogevbd What is the purpose of the mock?

Can this be a peer dependency instead?

The issue is that this now leaks into all projects that use RNN :(

@mikeduminy

Copy link
Copy Markdown

Also, if the mock is only used in tests then this definitely qualifies as a devDependency

@yogevbd

yogevbd commented Aug 25, 2021

Copy link
Copy Markdown
Collaborator Author

@michaelduminy It allows running render tests with RNN. #7140

The mock isn't used only in RNN tests but in our consumers tests as well. Is there an issue with having remx in your dependencies other than that issue?

@lindesvard

Copy link
Copy Markdown
Contributor

Me and @michaelduminy work at the same company so I can answer this.

We do not explicit have a problem but this adds a lot of extra work for us and bloating our package.json.

Currently we have a big app with a lot of dependencies. We have some checks to see if we get duplicate version of any package, if we do we need to add that version to our resolutions. Just a glimpse how much we need to add.

image

Also we do not want to add extra dependencies to our app even tho this likely will not be added in the production build.

@yogevbd

yogevbd commented Aug 25, 2021

Copy link
Copy Markdown
Collaborator Author

I Will move it to peerDependencies and will add:

"peerDependenciesMeta": {
    "remx": {
      "optional": true
    }
  }

as it required only when using RNN mocks.

@mikeduminy

Copy link
Copy Markdown

Thanks so much @yogevbd!

@yogevbd

yogevbd commented Aug 25, 2021

Copy link
Copy Markdown
Collaborator Author

Happy to help! #7230

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants