From 60a5bf8d68e1fe8c460f41e384b185fb2ba0f50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 19 Jul 2019 13:08:39 +0200 Subject: [PATCH] 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 :v: Thanks for this package! --- .npmignore | 3 ++- package-lock.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index 7c092c2..278e482 100644 --- a/.npmignore +++ b/.npmignore @@ -6,4 +6,5 @@ coverage/ .travis.yml gulpfile.js .idea/ -appveyor.yml \ No newline at end of file +appveyor.yml +.git/ diff --git a/package-lock.json b/package-lock.json index f7c8321..aa523f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hexo-filter-github-emojis", - "version": "2.0.0", + "version": "2.0.2", "lockfileVersion": 1, "requires": true, "dependencies": {