Skip to content

Commit

Permalink
fix babel module definition
Browse files Browse the repository at this point in the history
  • Loading branch information
prayerslayer committed Feb 24, 2017
1 parent fff5928 commit 67a3ee9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 13 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"presets": [
"env": {
"production": {
"presets": [
["es2015", { "modules": false }],
"react",
"stage-2"
]
]
},
"test": {
"presets": [
["es2015", { "modules": "commonjs" }],
"react",
"stage-2"
]
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Automatically sets width property on child components",
"main": "dist/react-automatic-width.js",
"scripts": {
"test": "mocha --compilers js:babel-register test/{**,.}/*.test.js",
"test": "BABEL_ENV=test mocha --compilers js:babel-register test/{**,.}/*.test.js",
"lint": "eslint src/react-automatic-width.jsx",
"build": "webpack",
"test-coverage": "babel-node ./node_modules/.bin/babel-istanbul cover _mocha -- --compilers js:babel-register test/{**,.}/*.test.js && cat ./coverage/lcov.info | coveralls",
"build": "BABEL_ENV=production webpack",
"test-coverage": "BABEL_ENV=test babel-node ./node_modules/.bin/babel-istanbul cover _mocha -- --compilers js:babel-register test/{**,.}/*.test.js && cat ./coverage/lcov.info | coveralls",
"prepublish": "npm test && npm run-script build"
},
"repository": {
Expand Down

0 comments on commit 67a3ee9

Please sign in to comment.