Skip to content

Commit

Permalink
transpile with Babel prior to publishing to npm
Browse files Browse the repository at this point in the history
This enables Node environments to use require('formsy-react') instead of
having to transpile it themselves
  • Loading branch information
Dan Pantry committed Sep 26, 2015
1 parent 8fe0d4d commit 5083c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
build
node_modules
lib
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"type": "git",
"url": "https://github.com/christianalfoni/formsy-react.git"
},
"main": "src/main.js",
"main": "lib/main.js",
"scripts": {
"start": "webpack-dev-server --content-base build",
"deploy": "NODE_ENV=production webpack -p --config webpack.production.config.js",
"test": "node testrunner",
"examples": "webpack-dev-server --config examples/webpack.config.js --content-base examples"
"examples": "webpack-dev-server --config examples/webpack.config.js --content-base examples",
"prepublish": "babel ./src/ -d ./lib/"
},
"author": "Christian Alfoni",
"license": "MIT",
Expand Down

0 comments on commit 5083c31

Please sign in to comment.