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 8db1a58867
commit e59dc3e8d0

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",