From 6c6a33b987839c873f144c12931a2dcdc14d0304 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 11 Aug 2021 15:39:52 -0500 Subject: [PATCH] fix vscode publish flow --- tools/vscode/package.json | 2 +- tools/vscode/scripts/publish.mjs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/vscode/package.json b/tools/vscode/package.json index cded25963f..57f6dc09d2 100644 --- a/tools/vscode/package.json +++ b/tools/vscode/package.json @@ -26,7 +26,7 @@ "onLanguage:astro" ], "dependencies": { - "@astrojs/language-server": "0.5.0", + "@astrojs/language-server": "0.6.0", "vscode-emmet-helper": "2.1.2", "vscode-html-languageservice": "^3.0.3", "vscode-languageclient": "~7.0.0" diff --git a/tools/vscode/scripts/publish.mjs b/tools/vscode/scripts/publish.mjs index 7de209a6bf..aaf0317eb3 100644 --- a/tools/vscode/scripts/publish.mjs +++ b/tools/vscode/scripts/publish.mjs @@ -4,7 +4,7 @@ import execa from 'execa'; /** Copies `astro-languageserver` to our file */ async function publish() { - const p0 = execa('yarn', ['lerna', 'run', 'build', '--scope', 'astro-vscode', '--scope', 'astro-languageserver'], { all: true }); + const p0 = execa('yarn', ['lerna', 'run', 'build', '--scope', 'astro-vscode', '--scope', '@astrojs/language-server'], { all: true }); p0.all.setEncoding('utf8'); for await (const chunk of p0.all) { console.log(chunk); @@ -18,7 +18,9 @@ async function publish() { } } - const p1 = execa('vsce', ['package'], { all: true }); + execa('npm', ['install'], { all: true }) + + const p1 = execa('vsce', ['publish'], { all: true }); p1.all.setEncoding('utf8'); for await (const chunk of p1.all) {