Skip to content

Commit 29e03fa

Browse files
authored
fix(vscode): Fix wrongly reverted fix to vscode publishing (#15823)
1 parent e20474b commit 29e03fa

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.changeset/soft-berries-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro-vscode': patch
3+
---
4+
5+
Fixes broken publishing

packages/language-tools/vscode/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"typescriptServerPlugins": [
5151
{
5252
"name": "astro-ts-plugin-bundle",
53-
"path": "./dist/astro-ts-plugin-bundle",
5453
"enableForWorkspaceTypeScriptVersions": true
5554
}
5655
],

packages/language-tools/vscode/scripts/build.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default async function build() {
1818
entryPoints: {
1919
'dist/node/client': './src/client.ts',
2020
'dist/node/server': './node_modules/@astrojs/language-server/bin/nodeServer.js',
21-
'dist/astro-ts-plugin-bundle/index': './node_modules/@astrojs/ts-plugin/dist/index.js',
21+
// We need to generate this inside node_modules so VS Code can resolve it
22+
'node_modules/astro-ts-plugin-bundle/index':
23+
'./node_modules/@astrojs/ts-plugin/dist/index.js',
2224
},
2325
bundle: true,
2426
metafile: metaFile,

0 commit comments

Comments
 (0)