Skip to content

Commit fe5a633

Browse files
committed
fixes #2
1 parent a28b5c0 commit fe5a633

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

package.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ module.exports = {
55
add: function(line, curData, scope, objects, currentWrite) {
66
var pkgPath = path.join(path.dirname(this.src.path), line.replace("@package", "").trim());
77
var pkg = fs.readFileSync(pkgPath).toString();
8-
curData.package = JSON.parse(pkg);
8+
var result = JSON.parse(pkg);
9+
10+
// delete things that would be too big
11+
delete result.readme;
12+
// or things that don't matter
13+
for(var prop in result) {
14+
if(prop[0] === "_") {
15+
delete result[prop];
16+
}
17+
}
18+
curData.package = result;
919
}
1020
};

0 commit comments

Comments
 (0)