I maintain a library that generates a sensitive files and unfortunately people were committing these sensitive files to public github repos.
To solve this problem, I built ignore-check which I can add as an install script to my library to make sure the sensitive file pattern is present in the .gitignore file, if it isn't there then this CLI will add it.
The positive benefit of shipping this as a npx cli command is that I don't need to add another dependency/dev dependency to my package.json
I maintain a library that generates a sensitive files and unfortunately people were committing these sensitive files to public github repos.
To solve this problem, I built ignore-check which I can add as an install script to my library to make sure the sensitive file pattern is present in the .gitignore file, if it isn't there then this CLI will add it.
The positive benefit of shipping this as a npx cli command is that I don't need to add another dependency/dev dependency to my package.json
Big shoutout to this project which was the inspiration for ignore-check: https://github.com/seek-oss/ensure-gitignore