Repository: thrift
Updated Branches:
refs/heads/master 5b15f8c55 -> f26488490
Fix package.json to include only the needed files
Before:
```
> du -sh node_modules/thrift
28M node_modules/thrift
```
After:
```
> mkdir -p /tmp/thrift-module
> cp -r node_modules/thrift/lib/nodejs/{lib,README.md} /tmp/thrift-module
> du -sh /tmp/thrift-module
208K /tmp/thrift-module
```
This closes #672
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/f2648849
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/f2648849
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/f2648849
Branch: refs/heads/master
Commit: f264884901d0e2a1197ae1511ee0fa0b8ca0d2aa
Parents: 5b15f8c
Author: Jan Krems <[email protected]>
Authored: Fri Oct 30 13:32:29 2015 -0700
Committer: Roger Meier <[email protected]>
Committed: Sun Nov 8 17:48:47 2015 +0100
----------------------------------------------------------------------
package.json | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/f2648849/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index b931a15..d527641 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,10 @@
"mail": "[email protected]",
"url": "https://issues.apache.org/jira/browse/THRIFT"
},
+ "files": [
+ "lib/nodejs/lib/thrift",
+ "lib/nodejs/README.md"
+ ],
"directories": {
"lib": "./lib/nodejs/lib/thrift"
},