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

Avoid using both Yarn and NPM #183

Merged
merged 2 commits into from Oct 30, 2020
Merged

Avoid using both Yarn and NPM #183

merged 2 commits into from Oct 30, 2020

Conversation

thien-do
Copy link
Contributor

@thien-do thien-do commented Oct 30, 2020

Having both yarn.lock and package-lock.json (i.e. using both Yarn and NPM) could easily be problematic. In short, it creates a risk of out-of-sync where one author installs with NPM and forgot to update yarn.lock so another author, when using yarn, won't have that dependency.

In this PR I propose to drop the use of yarn in favor of NPM since a search in the codebase yields more NPM usages (especially in the doc and in package.json) than Yarn (only in Docker file to install).

If others have strong reasons for using Yarn over NPM then feel free to yield them. I don't have strong personal reason for one over another :D

yarnpkg/yarn#3614
yarnpkg/yarn#5654
https://stackoverflow.com/questions/44552348/should-i-commit-yarn-lock-and-package-lock-json-files

Thien Do added 2 commits October 31, 2020 02:41
Having both `yarn.lock` and `package-lock.json` (i.e. using both Yarn and NPM) could [easily](yarnpkg/yarn#5654) [be](yarnpkg/yarn#3614) [problematic](https://stackoverflow.com/questions/44552348/should-i-commit-yarn-lock-and-package-lock-json-files). In short, it creates a risk of out-of-sync where one author installs with NPM and forgot to update yarn.lock so another author, when using yarn, won't have that dependency.

In this PR I propose to drop the use of yarn in favor of NPM since a search in the codebase yields more NPM usages (especially in the doc and in package.json) than Yarn (only in Docker file to install).

If others have strong reasons for using Yarn over NPM then feel free to yield them. I don't have strong personal reason for one over another :D
@DungDA DungDA merged commit 07bb9c2 into Cuuhomientrung:master Oct 30, 2020
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.

None yet

2 participants