Skip to content

Commit 6039ab8

Browse files
committed
fix(npm): do not compile tests and mocks to dist
To run the tests it is not needed to transpile them beforehand, and for the npm package the mocks and tests are ignored anyway.
1 parent ebb52e2 commit 6039ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main": "dist/main.js",
1414
"scripts": {
1515
"watch": "babel src/ --out-dir dist/ --watch",
16-
"build": "rm -rf dist/ && babel src/ --out-dir dist/",
16+
"build": "rm -rf dist/ && babel src/ --out-dir dist/ --ignore __tests__,__mocks__",
1717
"prepublish": "npm run build",
1818
"test": "jest"
1919
},

0 commit comments

Comments
 (0)