Skip to content

Commit

Permalink
Extract babel config from package.json to .babelrc
Browse files Browse the repository at this point in the history
Also add .babelrc to .npmignore so we don't have problems with
React-Native's packager.

Reference: reduxjs/redux#1033
  • Loading branch information
ryankirkman committed Dec 12, 2016
1 parent c712eea commit 0201f4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"es2015",
"stage-0"
]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
src
.babelrc

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proptypes-schema",
"version": "0.0.3",
"name": "@nerdwallet/proptypes-schema",
"version": "0.0.3-rn1",
"description": "Generic object schema modeled on React PropTypes",
"main": "./lib/index.js",
"scripts": {
Expand All @@ -12,18 +12,14 @@
"clean": "rm -rf lib",
"prepublish": "npm run build"
},
"babel": {
"presets": [
"es2015",
"stage-0"
]
},
"author": "",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-eslint": "^7.0.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.16.3",
"chai": "^3.5.0",
"eslint": "^3.4.0",
Expand Down

0 comments on commit 0201f4e

Please sign in to comment.