Skip to content

Commit

Permalink
fix: ignore tests/mocks in build
Browse files Browse the repository at this point in the history
  • Loading branch information
David Atchley committed Mar 15, 2017
1 parent 09fadc7 commit c6d4f9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"presets": ["es2015", "react"],
"plugins": ["transform-object-rest-spread"]
"plugins": ["transform-object-rest-spread"],
"ignore": [
"__mocks__/**/*.js",
"__tests__/**/*.js"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "lib/index.js",
"scripts": {
"clean": "rimraf lib coverage",
"build": "babel src --out-dir lib --ignore __tests__ --ignore __mocks__",
"build": "babel src --out-dir lib --ignore __tests__,__mocks__",
"build:umd": "webpack && NODE_ENV=production webpack",
"build:analyze": "webpack --json > ./lib/build-stats.json",
"lint": "eslint src examples",
Expand Down

0 comments on commit c6d4f9a

Please sign in to comment.