git ssb

3+

cel / ssb-npm-registry



Commit 2788b8557756e7f2321b45efaf2f13b3de910d1f

bootstrap: use resolved name-version for tmpdir

cel committed on 9/3/2018, 4:37:03 AM
Parent: fa6fcae9e8c547c7ff7db1e6c990ef35ebf5436f

Files changed

index.jschanged
index.jsView
@@ -670,9 +670,8 @@
670670 var postInstallCmd = self.server.npmConfig.postInstallCmd
671671 if (postInstallCmd == null) postInstallCmd = 'sbot server'
672672 var ssbNpmRegistryName = require('./package.json').name
673673 var ssbNpmRegistryVersion = require('./package.json').version
674- var ssbNpmRegistryNameVersion = ssbNpmRegistryName + '-' + ssbNpmRegistryVersion
675674 var ssbNpmRegistrySpec = ssbNpmRegistryName + '@^' + ssbNpmRegistryVersion
676675 var done = multicb({pluck: 1, spread: true})
677676 self.resolvePkg(ssbNpmRegistrySpec, done())
678677 self.resolvePkgs(pkgs, done())
@@ -680,8 +679,9 @@
680679 if (err) return self.respondErrorStr(500, err.stack || err)
681680 if (!ssbNpmRegistryPkgInfo) return self.respondErrorStr(500, 'Missing ssb-npm-registry package')
682681 var ssbNpmRegistryBlobId = ssbNpmRegistryPkgInfo.blobId
683682 var ssbNpmRegistryBlobHex = idToHex(ssbNpmRegistryBlobId)
683 + var ssbNpmRegistryNameVersion = ssbNpmRegistryPkgInfo.name + '-' + ssbNpmRegistryPkgInfo.version
684684 var pkgMsgs = pkgsInfo.map(function (info) { return info.msgId })
685685 var globalPkgs = pkgsInfo.map(function (info) {
686686 return info.name + '@' + info.version
687687 }).join(' ')

Built with git-ssb-web