Skip to content

Commit

Permalink
fix: vscode version check
Browse files Browse the repository at this point in the history
  • Loading branch information
tzachbon committed Apr 10, 2022
1 parent 44f4842 commit 061ff2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/publish-vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const vsce = require.resolve('vsce/vsce');

const extensionData = JSON.parse(spawnSync(vsce, ['show', extensionId, '--json']).stdout.toString());
const latestVersion = extensionData.versions[0] as { version: string; flags: number; lastUpdated: string };
const extensionCurrentVersion = require(extensionPackageJsonPath).version;
const extensionCurrentVersion = require(extensionPackageJsonPath).version as string;

if (latestVersion !== extensionCurrentVersion) {
if (latestVersion.version !== extensionCurrentVersion) {
console.log(`Updating extension from ${latestVersion.version} to ${extensionCurrentVersion}`);

const child = fork(vsce, ['publish', '--yarn'], {
Expand Down

0 comments on commit 061ff2f

Please sign in to comment.