Skip to content

Commit 4e0a633

Browse files
committed
Revert "Remove history npm workaround"
1 parent 5590516 commit 4e0a633

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/release.sh

+10
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@ git push origin latest -f
4444

4545
node scripts/build.js
4646

47+
# This is a workaround for a nasty npm bug. :'(
48+
# First, we need to uninstall the history package so
49+
# it's not included in the react-router npm package.
50+
# https://github.com/rackt/react-router/issues/2195
51+
# https://github.com/npm/npm/issues/9894
52+
rm -rf node_modules/history
53+
4754
npm publish
55+
56+
# And then re-install it after we publish.
57+
npm install history

0 commit comments

Comments
 (0)