communityconnect icon indicating copy to clipboard operation
communityconnect copied to clipboard

Npm or yarn

Open Khoawala opened this issue 7 years ago • 8 comments

While resolving the security issue by doing the yarn install to update the yarn-lock package. It showed me a warning. image

This makes sense. The yarn-lock file is never updated because we mostly use npm so we should decide to only use one of these tools.

Khoawala avatar Feb 28 '19 17:02 Khoawala

I like yarn, but both are good

alxhghs avatar Feb 28 '19 20:02 alxhghs

Yeah, it's wiser to have only one package manager. Add one of either which we do not want in the .gitignore

rahulmotan avatar Feb 28 '19 21:02 rahulmotan

Would github still show the vulnerability even if it's on .gitignore? How about we just delete the yarn.lock for now?

Khoawala avatar Feb 28 '19 23:02 Khoawala

Pretty sure gitignore wouldn't matter since it's still a dependency of a package in package.json

Sent from my iPhone

On Feb 28, 2019, at 6:27 PM, Khoawala [email protected] wrote:

Would github still show the vulnerability even if it's on .gitignore? How about we just delete the yarn.lock for now?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

alxhghs avatar Mar 01 '19 00:03 alxhghs

Did we decide on yarn or npm? We say yarn in the README, so maybe we should add package-lock.json to .gitignore

alxhghs avatar Mar 07 '19 20:03 alxhghs

Created a PR #246 if this is what we want to do

alxhghs avatar Mar 07 '19 22:03 alxhghs

@alxhghs Hey I think we should use npm as most members are using npm at the moment. Plus, yarn.lock is currently the outdated package that is giving security issues. Can you remove yarn.lock in your pull request?

Khoawala avatar Mar 13 '19 00:03 Khoawala

PR #249 removed yarn and switched us to NPM. Closing this issue

alxhghs avatar Mar 26 '19 21:03 alxhghs