Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Dev Dependencies #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Move to Dev Dependencies #68

wants to merge 1 commit into from

Conversation

hayesgm
Copy link
Contributor

@hayesgm hayesgm commented Apr 26, 2022

Currently all dependencies are being installed when this project is imported as a module. For instance, assume you want to pull in a .sass file, so you include this repo in your deps. Well now you have Elm being installed (for no reason!). Let's say you're using Elm 19.x and you pull in this repo, well now you have a dep conflict (for no reason!). Let's say you want to use dart-sass, well now you're getting chodikar-node-sass (for no reason!). This patch is to say: if you want to install the deps of this project or use its scripts, use yarn install --dev here. But generally these sub-deps are required to be hoisted to the parent repo anyway (e.g. if you want to use the elm components from here, your other project has to have Elm already). We could consider making these deps optional as opposed to dev, but I feel dev almost fits the jive better.

Currently all dependencies are being installed when this project is imported as a module. For instance, assume you want to pull in a `.sass` file, so you include this repo in your deps. Well now you have Elm being installed (for no reason!). Let's say you're using Elm 19.x and you pull in this repo, well now you have a dep conflict (for no reason!). Let's say you want to use `dart-sass`, well now you're getting `chodikar-node-sass` (for no reason!). This patch is to say: if you want to install the deps of this project or use its scripts, use `yarn install --dev` here. But generally these sub-deps are required to be hoisted to the parent repo anyway (e.g. if you want to use the elm components from here, your other project has to have Elm already). We could consider making these deps optional as opposed to dev, but I feel dev almost fits the jive better.
@hayesgm hayesgm requested review from mykelp and torreyatcitty April 26, 2022 23:08
Copy link
Collaborator

@mykelp mykelp left a comment

Choose a reason for hiding this comment

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

🔨 I didn't realize this is what you meant by moving to dev dependencies. smart fix! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants