Skip to content

Commit 4168f2b

Browse files
committed
Don't include spec files in build.
1 parent cf5ff97 commit 4168f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"src"
2525
],
2626
"scripts": {
27-
"build": "babel src -d lib",
27+
"build": "rimraf lib && babel src -d lib --ignore '**/*spec.js'",
2828
"test": "jest src",
2929
"test:watch": "npm run test -- --watch",
3030
"test:compat": "npm run test:backwards && npm run test:forwards && npm run test:latest",
@@ -47,7 +47,8 @@
4747
"jest-dom": "2.1.0",
4848
"react": "16.7.0-alpha.0",
4949
"react-dom": "16.7.0-alpha.0",
50-
"react-testing-library": "5.2.3"
50+
"react-testing-library": "5.2.3",
51+
"rimraf": "2.6.2"
5152
},
5253
"jest": {
5354
"coverageDirectory": "./coverage/",

0 commit comments

Comments
 (0)