From 9e864ef64603985c4eadea10d9da9e2bd39edeba Mon Sep 17 00:00:00 2001 From: Morten Henriksen Date: Thu, 23 Nov 2017 10:31:19 +0100 Subject: [PATCH] fix: publish method --- lib/publish.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/publish.js b/lib/publish.js index 22be69f4..bff47cea 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -1,16 +1,16 @@ const execa = require('execa'); const updatePackageVersion = require('./update-package-version'); -module.exports = async (pluginConfig, packageVsix, logger) => { +module.exports = async (version, packageVsix, logger) => { const { VSCE_TOKEN } = process.env; await updatePackageVersion(version, logger); logger.log('Publishing version %s to vs code marketplace', version); - await execa('vsce', ['publish', '-t', VSCE_TOKEN], { stdio: 'inherit'}); - + await execa('vsce', ['publish', '-t', VSCE_TOKEN], {stdio: 'inherit'}); + if (packageVsix) { logger.log('Packaging version %s as .vsix', version); - await exaca('vsce', ['package', '--out', packageVsix], { stdio: 'inherit' }); + await execa('vsce', ['package', '--out', packageVsix], { stdio: 'inherit' }); } };