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:
parent
0441985ea4
commit
60a5bf8d68
2 changed files with 3 additions and 2 deletions
|
@ -6,4 +6,5 @@ coverage/
|
|||
.travis.yml
|
||||
gulpfile.js
|
||||
.idea/
|
||||
appveyor.yml
|
||||
appveyor.yml
|
||||
.git/
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hexo-filter-github-emojis",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in a new issue