-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(ubergen): copy .npmignore into monopackage
#13642
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
Conversation
`.npmignore` did not use to be copied into the directories of the monopackage, leading to files that *ought* to have been excluded to not be excluded. Remove the file from the list of files that doesn't get copied to fix this. This fix is not along the lines of the method suggested in the linked issue, but it does address the original problem. Fixes #12292.
| '.gitignore', | ||
| '.jest.config.js', | ||
| '.jsii', | ||
| '.npmignore', |
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.
Interesting! I didn't know that .npmignore can be placed in subdirectories of a package and be respected by "npm pack"...
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.
It does indeed.
https://docs.npmjs.com/cli/v7/using-npm/developers#keeping-files-out-of-your-package
Like
git,npmlooks for.npmignoreand.gitignorefiles in all subdirectories of your package, not only the root directory.
nija-at
left a comment
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.
Simple and effective. Love it!
| '.gitignore', | ||
| '.jest.config.js', | ||
| '.jsii', | ||
| '.npmignore', |
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.
It does indeed.
https://docs.npmjs.com/cli/v7/using-npm/developers#keeping-files-out-of-your-package
Like
git,npmlooks for.npmignoreand.gitignorefiles in all subdirectories of your package, not only the root directory.
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
`.npmignore` did not use to be copied into the directories of the monopackage, leading to files that *ought* to have been excluded to not be excluded. Remove the file from the list of files that doesn't get copied to fix this. This fix is not along the lines of the method suggested in the linked issue, but it does address the original problem. Fixes #12292. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
`.npmignore` did not use to be copied into the directories of the monopackage, leading to files that *ought* to have been excluded to not be excluded. Remove the file from the list of files that doesn't get copied to fix this. This fix is not along the lines of the method suggested in the linked issue, but it does address the original problem. Fixes aws#12292. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
.npmignoredid not use to be copied into the directories of the monopackage,leading to files that ought to have been excluded to not be excluded.
Remove the file from the list of files that doesn't get copied to fix this.
This fix is not along the lines of the method suggested in the linked issue,
but it does address the original problem.
Fixes #12292.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license