Skip to content

Commit 5a58c8b

Browse files
committed
Don't include the world in the published packages
We ended up including all sorts of stuff in our published packages. Let's take the opposite approach and include useful stuff rather than exclude unuseful stuff.
1 parent f700bb4 commit 5a58c8b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.npmignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
example
2-
examples
3-
build/.module-cache

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
"url": "https://github.com/vector-im/vector-web"
99
},
1010
"license": "Apache-2.0",
11+
"files": [
12+
"AUTHORS.rst",
13+
"CONTRIBUTING.rst",
14+
"deploy",
15+
"docs",
16+
"karma.conf.js",
17+
"lib",
18+
"release.sh",
19+
"scripts",
20+
"src",
21+
"test",
22+
"webpack.config.js"
23+
],
1124
"style": "bundle.css",
1225
"matrix-react-parent": "matrix-react-sdk",
1326
"scripts": {
@@ -29,7 +42,7 @@
2942
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:emojione\" \"npm run start:js\" \"npm run start:skins:css\" \"http-server -c 1 vector\"",
3043
"start:prod": "parallelshell \"npm run start:emojione\" \"npm run start:js:prod\" \"npm run start:skins:css\" \"http-server -c 1 vector\"",
3144
"clean": "rimraf build lib vector/olm.* vector/bundle.* vector/emojione",
32-
"prepublish": "npm run build:css && npm run build:compile",
45+
"prepublish": "npm run build:compile",
3346
"test": "karma start --single-run=true --autoWatch=false --browsers PhantomJS --colors=false",
3447
"test:multi": "karma start"
3548
},

0 commit comments

Comments
 (0)