Skip to content

Commit c9233ce

Browse files
committed
Build LSP directly in destination so source maps are correct
1 parent effd3a6 commit c9233ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/lsp/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ const nodeSqlLiteWasm = '../../node_modules/node-sqlite3-wasm/dist/*.wasm';
2323

2424
runBuild({
2525
entryPoints: ['./src/index.ts'],
26-
outfile: './dist/lsp.js',
26+
outfile: '../vscode/out/lsp/lsp.js',
2727
assets: [
28-
{ from: [nodeSqlLiteWasm], to: './dist/' },
29-
{ from: ['./src/run.js'], to: './dist' },
30-
{ from: ['../../packages/editor-server/src/resources/**'], to: './dist/resources/' },
31-
{ from: ['../../packages/quarto-core/src/resources/**'], to: './dist/resources/' },
32-
{ from: ['./dist/**'], to: ['../vscode/out/lsp/'] }],
28+
{ from: [nodeSqlLiteWasm], to: '../vscode/out/lsp/' },
29+
{ from: ['./src/run.js'], to: '../vscode/out/lsp' },
30+
{ from: ['../../packages/editor-server/src/resources/**'], to: '../vscode/out/lsp/resources/' },
31+
{ from: ['../../packages/quarto-core/src/resources/**'], to: '../vscode/out/lsp/resources/' }
32+
],
3333
minify: !dev,
3434
dev
3535
})

0 commit comments

Comments
 (0)