Try with preinstall to prevent weird dir changing with npm i.

This commit is contained in:
Jorge Bucaran 2016-04-24 01:42:57 +09:00
parent eef50fcd09
commit 8ff984106c
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -1,7 +1,7 @@
{
"name": "fisherman",
"description": "fish plugin manager",
"version": "2.1.4",
"version": "2.1.5",
"author": "Jorge Bucaran",
"homepage": "https://github.com/fisherman/fisherman",
"bugs": "https://github.com/fisherman/fisherman/issues",
@ -15,8 +15,8 @@
"package manager"
],
"scripts": {
"install": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; cp -f fisher.fish \"$i/fisher.fish\"; exec fish < /dev/tty",
"uninstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; rm -f \"$i/fisher.fish\"; exec fish < /dev/tty"
"preinstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; cp -f fisher.fish \"$i/fisher.fish\"; exec fish < /dev/tty",
"preuninstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; rm -f \"$i/fisher.fish\"; exec fish < /dev/tty"
},
"repository": {
"type": "git",