-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Either commit package-lock.json, or gitignore it #863
Comments
@Silic0nS0ldier This file is annoying me. What should we do with it ? |
From a security perspective, I vote keep it. GitHub routinely runs a security audit on files like this, and if we remove it we risk not finding out about a known vulnerability. Vulnerable dependencies could inject code that is run client side (or even when the project is deployed) permitting session hijacking attacks and at worse server takeover. Node isn't the most locked down system by default, so keeping tabs on vulnerabilities that affect us is important. My opinion regarding the file might change if alternatives turn up. (an alternative will be needed if user extensions get hooked up in the future) |
Above the security audit, thing is, just like One of Thing is, if it doesn't bring any benefit right now, other than the security audit thing, I vote we gitignore it. But at the same time, I vote we do look for a way for a dev to be able to commit this file with all their project dependencies somehow. Probably something we can work out along #830. |
Considering how UserFrosting is used, I'm thinking ignoring it is the better choice. Will just annoy users with merge conflicts, etc. Come V5 this shouldn't be an issue (🤞). |
Right now,
build/package-lock.json
is created for the first time when you runbuild-assets
orbake
. We should decide if we want to commit it to UF (thus locking devs at the same versions of the packages that we used in the release), or gitignore it.I'd argue the same goes for
composer.lock
.The text was updated successfully, but these errors were encountered: