Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
roderickhsiao committed Oct 23, 2020
1 parent f87326b commit 613a48a
Show file tree
Hide file tree
Showing 3 changed files with 747 additions and 779 deletions.
8 changes: 4 additions & 4 deletions .scripts/prepublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
echo "=> Transpiling 'src' into ES5 ..."
echo ""
rm -rf ./dist
NODE_ENV=production BABEL_ENV=cjs ./node_modules/.bin/babel --ignore tests,stories ./src --out-dir ./dist
NODE_ENV=production BABEL_ENV=cjs ./node_modules/.bin/babel --ignore "./src/__tests__/**,./src/stories/**" ./src --out-dir ./dist

echo "=> Transpiling 'src' into ES6 ..."
NODE_ENV=production BABEL_ENV=es ./node_modules/.bin/babel --ignore tests,stories ./src --out-dir ./dist/es
NODE_ENV=production BABEL_ENV=es ./node_modules/.bin/babel --ignore "./src/__tests__/**,./src/stories/**" ./src --out-dir ./dist/es

echo "=> Transpiling 'src' into UMD ..."
NODE_ENV=production BABEL_ENV=umd ./node_modules/.bin/babel --ignore tests,stories ./src --out-dir ./dist/umd
NODE_ENV=production BABEL_ENV=umd ./node_modules/.bin/babel --ignore "./src/__tests__/**,./src/stories/**" ./src --out-dir ./dist/umd

echo "=> Transpiling 'src' into NEXT ..."
NODE_ENV=production BABEL_ENV=next ./node_modules/.bin/babel --ignore tests,stories ./src --out-dir ./dist/next
NODE_ENV=production BABEL_ENV=next ./node_modules/.bin/babel --ignore "./src/__tests__/**,./src/stories/**" ./src --out-dir ./dist/next

echo ""
echo "=> Transpiling completed."
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-aspect-ratio",
"version": "1.0.45",
"version": "1.0.46",
"description": "React Aspect Ratio Component",
"author": "Roderick Hsiao <roderickhsiao@gmail.com>",
"repository": {
Expand Down Expand Up @@ -54,8 +54,8 @@
"jest": "^25.1.0",
"jest-cli": "^25.1.0",
"jest-junit": "^10.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"storybook-addon-jsx": "^7.0.0"
},
Expand Down

0 comments on commit 613a48a

Please sign in to comment.