summaryrefslogtreecommitdiff
path: root/tools/vscode/scripts/publish.mjs
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-08-26 13:14:47 -0400
committerGravatar GitHub <noreply@github.com> 2021-08-26 13:14:47 -0400
commitc4cfc0d5fb26e39be7c10ba1ecdc32656870b10d (patch)
treee8dde32fb8ef88f6b9bd6276e5ca9194fb487ba9 /tools/vscode/scripts/publish.mjs
parentc83d4817336f73348dbcedf493f2e5d2402e9e49 (diff)
downloadastro-c4cfc0d5fb26e39be7c10ba1ecdc32656870b10d.tar.gz
astro-c4cfc0d5fb26e39be7c10ba1ecdc32656870b10d.tar.zst
astro-c4cfc0d5fb26e39be7c10ba1ecdc32656870b10d.zip
Remove VSCode and Langauge Server from this monorepo (#1230)
* Remove VSCode and Langauge Server from this monorepo * Adds back in the syntax files
Diffstat (limited to 'tools/vscode/scripts/publish.mjs')
-rw-r--r--tools/vscode/scripts/publish.mjs41
1 files changed, 0 insertions, 41 deletions
diff --git a/tools/vscode/scripts/publish.mjs b/tools/vscode/scripts/publish.mjs
deleted file mode 100644
index b66ab1aed..000000000
--- a/tools/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', '@astrojs/language-server'], { 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);
- }
- }
-
- execa('npm', ['install'], { all: true });
-
- 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();