Skip to content

Commit 8877cd0

Browse files
authoredFeb 16, 2020
fix: broken verify condition (#55)
1 parent a5c7c28 commit 8877cd0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎lib/verify.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ const setAuth = require('./set-auth');
33
const getPkg = require('read-pkg-up');
44
const SemanticReleaseError = require('@semantic-release/error');
55

6-
module.exports = async (logger) => {
7-
const { pkg } = await getPkg();
8-
if (!pkg) {
9-
throw new SemanticReleaseError('package.json not found. A package.json is required to release with vsce.', 'ENOPKG');
6+
module.exports = async logger => {
7+
const { packageJson } = await getPkg();
8+
if (!packageJson) {
9+
throw new SemanticReleaseError(
10+
'package.json not found. A package.json is required to release with vsce.',
11+
'ENOPKG'
12+
);
1013
}
11-
verifyPkg(pkg);
14+
verifyPkg(packageJson);
1215
await setAuth(logger);
1316
try {
1417
// TODO: Verify output

0 commit comments

Comments
 (0)
Please sign in to comment.