Skip to content

Commit

Permalink
Use allowlist approach for .npmignore
Browse files Browse the repository at this point in the history
- If .npmignore is present, then .gitignore is ignored
- LICENSE, package.json, and README.md are never ignored
- Use an allsowlist approach by only including /vendor folder

Fix #84

Ref: https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
  • Loading branch information
tagliala authored and vjt committed Feb 13, 2021
1 parent 5a3a3a8 commit 139459f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Ignore Ruby sources

Gemfile
Rakefile
data-confirm-modal.gemspec
lib/
# Use an allowlist approach to ignore everything but /vendor
# LICENSE, package.json, and README (with its varations) are never ignored
# https://npm.github.io/publishing-pkgs-docs/publishing/the-npmignore-file.html
*
!/vendor

0 comments on commit 139459f

Please sign in to comment.