Skip to content

Commit 856d549

Browse files
committed
Build all files into the package root
1 parent 55aa7f9 commit 856d549

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
lib
21
umd

Diff for: .npmignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.babelrc
2+
.eslintrc
3+
.gitignore
4+
.npmignore
5+
.travis.yml
6+
karma.conf.js
7+
modules
8+
node_modules
9+
scripts
10+
tests.webpack.js
11+
webpack.config.js

Diff for: package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55
"repository": "ReactTraining/react-media",
66
"author": "Michael Jackson",
77
"license": "MIT",
8-
"main": "lib",
9-
"files": [
10-
"lib",
11-
"umd"
12-
],
138
"scripts": {
149
"build": "node ./scripts/build.js",
15-
"build-lib": "rimraf lib && babel ./modules -d lib --ignore '__tests__'",
10+
"build-lib": "babel ./modules -d . --ignore '__tests__'",
1611
"build-umd": "webpack modules/index.js umd/react-media.js",
1712
"build-min": "webpack -p modules/index.js umd/react-media.min.js",
1813
"release": "node ./scripts/release.js",
@@ -51,7 +46,6 @@
5146
"react": "^15.3.0",
5247
"react-dom": "^15.3.0",
5348
"readline-sync": "^1.4.4",
54-
"rimraf": "^2.5.4",
5549
"webpack": "^1.13.1"
5650
},
5751
"keywords": [

0 commit comments

Comments
 (0)