From 3be6a2d2329edf47fe2911e6f384a50986dc1fe5 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 8 Oct 2015 10:55:43 -0700 Subject: [PATCH] [fixed] Workaround for nasty npm bug Fixes #2195 --- scripts/release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index 42998ad962..2a5b9ee070 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -45,4 +45,14 @@ git push origin latest -f ./scripts/build.sh +# This is a workaround for a nasty npm bug. :'( +# First, we need to uninstall the history package so +# it's not included in the react-router npm package. +# https://github.com/rackt/react-router/issues/2195 +# https://github.com/npm/npm/issues/9894 +rm -rf node_modules/history + npm publish + +# And then re-install it after we publish. +npm install history