-
Notifications
You must be signed in to change notification settings - Fork 173
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
Don't pull the example folder into the module build #220
Conversation
Resolves #221 Hi @gcharnock @bergie @locnguyen @cava23 - could you review this pr please. I install your module in an application, it copies over .pem and .key files that are in your tests. This means that when we put our application through security scans, it fails because it finds these files and classifies them as sensitive data. What I'm asking is whether you can not include these in the bundled version of the application. To resolve it, you can have a section in the package.json that doesn't pull the test files over to the build of the module when it is pulled in. |
I thought the package-lock.json should never be hand-modded. Is there a corresponding change to package.json you're trying to make? I don't understand the intended change based on the diff. |
The package lock has only been upversioned and it wasn't done manually, I was done using the npm version patch command. |
@cava23 if you look at the latest changes, there is a files section in the package.json that specifies which folders and files need putting into the package when installed. |
Can you remove whitespace changes so the diff is legible? |
@cava23 Sure thing - removed whitespace |
Sorry, looked at this a little closer and it appears this is already being attempted in the |
You can test this with |
Moved to .gitignore, and added example in there, which is causing an issue too. @cava23 |
Nice, I assume you meant .npmignore instead .gitignore. And this is now working as expected? |
Yeah sorry I mean .npmignore. And yep all working as expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to get approval from one other contributor as I've only made a small change to this project.
Sounds fair enough - cheers! |
Hey @yaronn - are you able to review this pull request, please. |
Can this please be reviewed? It's causing issues and need this change ASAP. @cava23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.