diff --git a/script/build.sh b/script/build.sh index 3fec3ba..a6fc623 100755 --- a/script/build.sh +++ b/script/build.sh @@ -5,8 +5,10 @@ if [ -d dist ]; then rm -rf dist; fi mkdir dist # UMD build -babel src/pinch-zoom.js -o dist/pinch-zoom.umd.js +npx babel src/pinch-zoom.js -o dist/pinch-zoom.umd.js # Minify -babel-minify --sourceType module src/pinch-zoom.js -o dist/pinch-zoom.min.js -babel-minify dist/pinch-zoom.umd.js -o dist/pinch-zoom.umd.min.js +npx babel-minify --sourceType module src/pinch-zoom.js -o dist/pinch-zoom.min.js +npx babel-minify dist/pinch-zoom.umd.js -o dist/pinch-zoom.umd.min.js + +echo "Build completed, see dist directory"