Exclude .git from npm publish

npm is supposed to ignore this by default, but in v2.0.2 the `.git`
folder was included in the published hexo-filter-github-emojis module.
This causes problems when doing `npm install` again, because it sees a
git repo where it expects a bare npm package.

npm ERR! path ./node_modules/hexo-filter-github-emojis
npm ERR! code EISGIT
npm ERR! git ./node_modules/hexo-filter-github-emojis:
Appears to be a git repo or submodule.
npm ERR! git ./node_modules/hexo-filter-github-emojis
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

If you publish again with this patch, all should be fine ✌️

Thanks for this package!
This commit is contained in:
Renée Kooi 2019-07-19 13:08:39 +02:00
parent 0441985ea4
commit 60a5bf8d68
No known key found for this signature in database
GPG Key ID: 8CDD5F0BC448F040
2 changed files with 3 additions and 2 deletions

View File

@ -6,4 +6,5 @@ coverage/

package-lock.json generated
View File

@ -1,6 +1,6 @@
"name": "hexo-filter-github-emojis",
"version": "2.0.0",
"version": "2.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {