Skip to content

Commit bc716cc

Browse files
committed
Merge pull request #2789 from rackt/revert-2756-remove-history-npm-workaround
Revert "Remove history npm workaround"
2 parents 5590516 + 4e0a633 commit bc716cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/release.sh

Lines changed: 10 additions & 0 deletions
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)