Skip to content

Commit f8ffe82

Browse files
committed
Require version to be passed
1 parent 6882e11 commit f8ffe82

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bin/release

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
VERSION=$1
44

5+
if [ -z "$VERSION" ]; then
6+
echo "Usage: $0 <version>"
7+
exit 1
8+
fi
9+
510
printf "module Importmap\n VERSION = \"$VERSION\"\nend\n" > ./lib/importmap/version.rb
611
bundle
712
for gemfile in $(ls gemfiles/*.gemfile); do BUNDLE_GEMFILE="$gemfile" bundle; done

bin/update-shim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
VERSION=$1
44

5+
if [ -z "$VERSION" ]; then
6+
echo "Usage: $0 <version>"
7+
exit 1
8+
fi
9+
510
curl -s "https://unpkg.com/es-module-shims@$VERSION/dist/es-module-shims.js" > app/assets/javascripts/es-module-shims.js
611
curl -s "https://ga.jspm.io/npm:es-module-shims@$VERSION/dist/es-module-shims.js" > app/assets/javascripts/es-module-shims.min.js
712
curl -s "https://ga.jspm.io/npm:es-module-shims@$VERSION/dist/es-module-shims.js.map" > app/assets/javascripts/es-module-shims.js.map

0 commit comments

Comments
 (0)