diff --git a/tools/vscode/package.json b/tools/vscode/package.json index cded25963..57f6dc09d 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 7de209a6b..aaf0317eb 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) {