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