transpile with Babel prior to publishing to npm

This enables Node environments to use require('formsy-react') instead of
having to transpile it themselves
This commit is contained in:
Dan Pantry 2015-09-26 23:54:39 +01:00
parent 8fe0d4d73f
commit 5083c31c8d
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.DS_Store
build
node_modules
lib

View File

@ -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",