Skip to content

Commit

Permalink
Properly ignore test files from being compiled by babel
Browse files Browse the repository at this point in the history
  • Loading branch information
leoasis committed Oct 9, 2018
1 parent 1719388 commit 4d4f060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
.npmrc
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"test": "jest",
"babel": "babel src --out-dir dist --ignore test.js,__snapthots__",
"babel": "babel src --out-dir dist --ignore \"src/**/*.test.js,__snapthots__\"",
"prepublish": "rm -rf dist && npm run babel && mv dist/index.macro.js dist/index.js"
},
"jest": {
Expand Down

0 comments on commit 4d4f060

Please sign in to comment.