Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: felipecrs/semantic-release-vsce
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: felipecrs/semantic-release-vsce
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 16, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8877cd0 View commit details
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/verify.js
13 changes: 8 additions & 5 deletions lib/verify.js
Original file line number Diff line number Diff line change
@@ -3,12 +3,15 @@ const setAuth = require('./set-auth');
const getPkg = require('read-pkg-up');
const SemanticReleaseError = require('@semantic-release/error');

module.exports = async (logger) => {
const { pkg } = await getPkg();
if (!pkg) {
throw new SemanticReleaseError('package.json not found. A package.json is required to release with vsce.', 'ENOPKG');
module.exports = async logger => {
const { packageJson } = await getPkg();
if (!packageJson) {
throw new SemanticReleaseError(
'package.json not found. A package.json is required to release with vsce.',
'ENOPKG'
);
}
verifyPkg(pkg);
verifyPkg(packageJson);
await setAuth(logger);
try {
// TODO: Verify output