Commit 8a4974fd8a7728b57aaa09d797b14fb065313500
Require dependencies to already be on ssb-npm when publishing
cel committed on 6/30/2018, 8:57:22 PMParent: 688be4c9d6200dd66d47d9087952c52b4a9de824
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -181,9 +181,9 @@ | |||
181 | 181 … | if (err) return cb(err) | |
182 | 182 … | var version = distTags[spec] | |
183 | 183 … | || semver.maxSatisfying(Object.keys(versions), spec) | |
184 | 184 … | var item = versions[version] | |
185 | - if (!item) return console.error('version not found: ' + name + '@' + spec) | ||
185 … | + if (!item) return cb(new Error('Dependency version not found: ' + name + '@' + spec)) | ||
186 | 186 … | msgs[item.msg.key] = item.msg.value | |
187 | 187 … | var c = item.msg.value.content | |
188 | 188 … | if (Array.isArray(c.dependencyBranch)) { | |
189 | 189 … | for (var k = 0; k < c.dependencyBranch.length; k++) { |
Built with git-ssb-web