Commit 23dee655b1fb892aa6254ff7c38abfb7ea3e4f83
Include dependencies in publish
cel committed on 10/16/2017, 10:48:10 PMParent: dc53dc59b7abd4fd3a0823750f115e939991a4ce
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -610,8 +610,9 @@ | ||
610 | 610 | if (pkg.version && pkg.version !== version) |
611 | 611 | return self.respondError(400, 'Mismatched package version: ' + [pkg.version, version]) |
612 | 612 | linksByVersion[version] = link |
613 | 613 | link.version = version |
614 | + link.dependencies = pkg.dependencies | |
614 | 615 | } |
615 | 616 | |
616 | 617 | // associate blobs with dist-tags |
617 | 618 | var tags = data['dist-tags'] || {} |
@@ -632,8 +633,9 @@ | ||
632 | 633 | mentions.push({ |
633 | 634 | name: 'npm:' + name + ':' + link.version + (link.tag ? ':' + link.tag : ''), |
634 | 635 | link: link.link, |
635 | 636 | size: link.size, |
637 | + dependencies: link.dependencies, | |
636 | 638 | }) |
637 | 639 | } |
638 | 640 | return self.publishPkgs(mentions) |
639 | 641 | } |
Built with git-ssb-web