diff options
author | Jan Krems <jan.krems@groupon.com> | 2015-10-30 13:32:29 -0700 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2015-11-08 17:48:47 +0100 |
commit | f264884901d0e2a1197ae1511ee0fa0b8ca0d2aa (patch) | |
tree | c17291f546d9c6e57659b7beb30e07625274be59 /package.json | |
parent | 5b15f8c55f8f26644f40a9ccbbf339f6f84dacd0 (diff) | |
download | thrift-f264884901d0e2a1197ae1511ee0fa0b8ca0d2aa.tar.gz |
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
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package.json b/package.json index b931a159e..d52764159 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,10 @@ "mail": "dev@thrift.apache.org", "url": "https://issues.apache.org/jira/browse/THRIFT" }, + "files": [ + "lib/nodejs/lib/thrift", + "lib/nodejs/README.md" + ], "directories": { "lib": "./lib/nodejs/lib/thrift" }, |