Skip to content

Commit

Permalink
chore: idk ? (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer authored May 20, 2024
1 parent bd5ca1b commit cb150b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/language-server/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { copyFile } from 'fs'
import { resolve } from 'path'
import { defineConfig } from 'tsup'

export default defineConfig({
Expand All @@ -11,8 +12,8 @@ export default defineConfig({
shims: true,
onSuccess() {
console.log('✅ Build complete!')
copyFile('./dist/index.js', '../vscode/dist/server.js', (err) => {
if (err) throw err
copyFile(resolve(__dirname, './dist/index.js'), resolve(__dirname, '../vscode/dist/server.js'), (err) => {
if (err) return console.warn(err)
console.log('✅ Server.js copied to vscode/dist')
})

Expand Down

0 comments on commit cb150b2

Please sign in to comment.