From fe04c2d4f1c4d80bc65bbe31380a7a1e123f1de3 Mon Sep 17 00:00:00 2001 From: randymarsh77 Date: Thu, 4 Jun 2020 01:18:49 -0700 Subject: [PATCH] fix(vscode): fix path in publish script. --- packages/vscode/tools/publish.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/vscode/tools/publish.js b/packages/vscode/tools/publish.js index 81dc639..7b9d4c1 100644 --- a/packages/vscode/tools/publish.js +++ b/packages/vscode/tools/publish.js @@ -1,12 +1,10 @@ const path = require('path'); const shell = require('shelljs'); -const pathToPackage = pkg => path.join(__dirname, '..', '..', 'packages', pkg); - module.exports = { publish: () => { const vscode = { - cwd: pathToPackage('vscode'), + cwd: path.join(__dirname, '..'), }; shell.exec('npx vsce package --yarn', vscode); shell.exec(`npx vsce publish -p ${process.env.VSCE_TOKEN} --yarn`, vscode);