diff --git a/.npmignore b/.npmignore index 5305768b..8ab743a3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,7 +1,7 @@ # Ignore all files/folders by default # See https://stackoverflow.com/a/29932318 /* -# Except this files/folders +# Except these files/folders !.editorconfig !.gitignore !.npmignore diff --git a/templates/template-.npmignore b/templates/template-.npmignore index f5f4b30c..203fae89 100644 --- a/templates/template-.npmignore +++ b/templates/template-.npmignore @@ -1,10 +1,11 @@ # Ignore all files/folders by default # See https://stackoverflow.com/a/29932318 /* -# Except this files/folders +# Except these files/folders !docs !lib !LICENSE !package.json !package-lock.json !README.md +!src