Skip to content

Commit

Permalink
build: create bundle with esbuild when running 'pnpm build'
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Sep 20, 2024
1 parent 4a88d77 commit bd47b26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*"
"!dist/**/*.spec.*",
"!dist/bundle/**"
],
"scripts": {
"build": "vite build && pnpm package",
"build": "vite build && pnpm package && pnpm bundle",
"bundle": "pnpm bundle:index && pnpm bundle:task && pnpm bundle:vite",
"bundle:index": "esbuild './dist/index.js' --bundle --outfile='./dist/bundle/index.js' --minify",
"bundle:task": "esbuild './dist/task.js' --bundle --outfile='./dist/bundle/task.js' --minify",
"bundle:vite": "esbuild './dist/vite.js' --bundle --outfile='./dist/bundle/vite.js' --minify",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"dev": "vite dev",
Expand Down

0 comments on commit bd47b26

Please sign in to comment.