Skip to content

Commit

Permalink
fix(vscode): fix path in publish script.
Browse files Browse the repository at this point in the history
  • Loading branch information
randymarsh77 committed Jun 4, 2020
1 parent 04d58d0 commit fe04c2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vscode/tools/publish.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit fe04c2d

Please sign in to comment.