Skip to content

Commit

Permalink
fix: broken examples by fixing unpkg versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cprice-scottlogic authored and chrisprice committed Sep 1, 2020
1 parent bed60ca commit 9e9eb5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/site.sh
Expand Up @@ -5,7 +5,11 @@ cd site

cp -r ../examples .

# update scripts to reference unpkg
# update scripts to reference unpkg
# N.B. these versions need to be kept in sync with package.json
sed -i "s#../../node_modules/seedrandom#https://unpkg.com/seedrandom@3#" examples/*/index.html
sed -i "s#../../node_modules/mockdate#https://unpkg.com/mockdate@2#" examples/*/index.html
sed -i "s#../../node_modules/d3#https://unpkg.com/d3@5#" examples/*/index.html
sed -i "s#../../node_modules/#https://unpkg.com/#" examples/*/index.html
sed -i "s#../../packages/#https://unpkg.com/#" examples/*/index.html

Expand Down

0 comments on commit 9e9eb5b

Please sign in to comment.