Skip to content

Commit

Permalink
fix: fix typo (#15)
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
saurabhhere authored Dec 7, 2020
1 parent 46871ac commit dfd9304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/can-npm-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ const checkAlreadyPublish = packagePath => {
const publishConfig = pkg["publishConfig"];
const registry = publishConfig && publishConfig["registry"];
if (name === undefined) {
return Promise.reject(new Error("This package has not `name`."));
return Promise.reject(new Error("This package has no `name`."));
}
if (version === undefined) {
return Promise.reject(new Error("This package has not `version`."));
return Promise.reject(new Error("This package has no `version`."));
}
return viewPackage(name, registry).then(versions => {
if (versions.includes(version)) {
Expand Down

0 comments on commit dfd9304

Please sign in to comment.