-
Notifications
You must be signed in to change notification settings - Fork 396
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
Remove package-lock.json files when building artefacts #4341
Comments
This statement could be interpreted incorrectly, so just to clarify: BLT does clear out If it excluded The proper way to fix this is by adding package-lock.json to your deploy .gitignore. I'd accept a PR for this as well. More details on how to customize the build process, including the deploy .gitignore: https://docs.acquia.com/blt/extending-blt/#modifying-the-build-artifact |
I closed this and then re-opened only minutes later after reading this: |
Is your feature request related to a problem? Please describe.
A client has recently used Detectify to scan for vulnerabilities on their site and asked us to address the
package-lock.json
file present athttps://client-site.dom/themes/custom/client-theme/package-lock.json
.Describe the solution you'd like
Since
blt deploy
does such a good job clearing out thenode_modules
directory when creating the build artefact, it would seems like it would be also handy to ensure anypackage-lock.json
files were not present in the build artefact too. No?Describe alternatives you've considered
We could address that by adding a
.htaccess
file to the theme directory to hide the file.Additional context
Perhaps it is something which has been addressed in
blt/blt.yml
already and I just don't see it. If it's there, please put me out of my misery and I'm sorry for creating this ticket.The text was updated successfully, but these errors were encountered: