Skip to content

Commit 3be6a2d

Browse files
committed
[fixed] Workaround for nasty npm bug
Fixes #2195
1 parent ebaf437 commit 3be6a2d

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
@@ -45,4 +45,14 @@ git push origin latest -f
4545

4646
./scripts/build.sh
4747

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

0 commit comments

Comments
 (0)