Skip to content

Commit

Permalink
chore: move tsup config into a file
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 26, 2024
1 parent 2538daf commit 93027e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
"scripts": {
"vscode:prepublish": "pnpm compile",
"release": "bumpp package.json --commit --push --tag && git update-ref refs/heads/release refs/heads/main && git push origin release",
"compile": "tsup ./src/extension.ts --external vscode --minify",
"watch": "tsup ./src/extension.ts --external vscode --watch --sourcemap",
"compile": "tsup --minify",
"watch": "tsup --watch --sourcemap",
"test": "vitest run --config vite.global-config.ts",
"typecheck": "tsc --noEmit",
"lint": "eslint --cache .",
Expand Down
9 changes: 9 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup'

export default defineConfig([
{
entry: ['./src/extension.ts'],
external: ['vscode'],
format: 'cjs',
},
])

0 comments on commit 93027e1

Please sign in to comment.