diff options
author | 2021-06-16 13:20:29 -0500 | |
---|---|---|
committer | 2021-06-16 13:20:29 -0500 | |
commit | 0dd278810e4353799c7239463f156b358ea30871 (patch) | |
tree | 964a62a13467950509b446ebeaa9b668e5874665 /tools/astro-vscode/scripts/publish.mjs | |
parent | 382868abfc4b46a0c582ec4bf868719d4e87bbd2 (diff) | |
download | astro-0dd278810e4353799c7239463f156b358ea30871.tar.gz astro-0dd278810e4353799c7239463f156b358ea30871.tar.zst astro-0dd278810e4353799c7239463f156b358ea30871.zip |
Fix VS Code extension (#467)
* chore: astro-languageserver => @astrojs/language-server
* chore: astro-vscode => vscode
* chore: move devDeps to deps
* chore: bump language-server to 0.5.0-next.0
* chore: remove astro-docs
* chore: update changelog
* fix: expose `astro-ls` bin
* fix: vscode extension
* chore: update changelog
Diffstat (limited to 'tools/astro-vscode/scripts/publish.mjs')
-rw-r--r-- | tools/astro-vscode/scripts/publish.mjs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tools/astro-vscode/scripts/publish.mjs b/tools/astro-vscode/scripts/publish.mjs deleted file mode 100644 index 93a36e804..000000000 --- a/tools/astro-vscode/scripts/publish.mjs +++ /dev/null @@ -1,41 +0,0 @@ -import { promises as fs } from 'fs'; -import { fileURLToPath } from 'url'; -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 }); - p0.all.setEncoding('utf8'); - for await (const chunk of p0.all) { - console.log(chunk); - - if (/lerna success/g.test(chunk)) { - break; - } - - if (/ERROR/g.test(chunk)) { - process.exit(1); - } - } - - await execa('npm', ['install']); - - const p1 = execa('vsce', ['publish'], { all: true }); - - p1.all.setEncoding('utf8'); - for await (const chunk of p1.all) { - console.log(chunk); - - if (/DONE/g.test(chunk)) { - break; - } - - if (/ERROR/g.test(chunk)) { - process.exit(1); - } - } - - p1.kill(); -} - -publish(); |