File tree Expand file tree Collapse file tree 3 files changed +35
-3
lines changed
Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 44 "private" : true ,
55 "scripts" : {
66 "clean-install" : " bun ci" ,
7- "dev" : " vite dev --host" ,
7+ "check-bun-version" : " bun run scripts/check-bun-version.ts" ,
8+ "dev" : " bun run check-bun-version && vite dev --host" ,
89 "prebuild" : " cd ../profiler-lib && bun run build" ,
9- "build" : " svelte-kit sync && svelte-check --threshold error && vite build" ,
10+ "build" : " bun run check-bun-version && svelte-kit sync && svelte-check --threshold error && vite build" ,
1011 "preview" : " vite preview --host" ,
1112 "check" : " svelte-kit sync && svelte-check" ,
1213 "check:watch" : " svelte-kit sync && svelte-check --watch" ,
Original file line number Diff line number Diff line change 1+ import { $ } from 'bun'
2+ import semver from 'semver'
3+
4+ const MIN_BUN_VERSION = '1.3.3'
5+
6+ async function checkBunVersion ( ) {
7+ try {
8+ // Get current Bun version
9+ const result = await $ `bun --version` . text ( )
10+ const currentVersion = result . trim ( )
11+
12+ console . log ( `Current Bun version: ${ currentVersion } ` )
13+ console . log ( `Required minimum version: ${ MIN_BUN_VERSION } ` )
14+
15+ // Compare versions
16+ if ( ! semver . gte ( currentVersion , MIN_BUN_VERSION ) ) {
17+ console . error (
18+ `\n❌ Error: Bun version ${ currentVersion } is too old. Please upgrade to ${ MIN_BUN_VERSION } or higher.`
19+ )
20+ console . error ( ` Run: bun upgrade` )
21+ process . exit ( 1 )
22+ }
23+
24+ console . log ( `✓ Bun version check passed\n` )
25+ } catch ( error ) {
26+ console . error ( 'Failed to check Bun version:' , error )
27+ process . exit ( 1 )
28+ }
29+ }
30+
31+ checkBunVersion ( )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export const usePipelineManager = (options?: FetchOptions) => {
104104 // ...(await getAuthorizationHeaders()),
105105 // Accept: 'application/zip'
106106 // }
107- const fileName = `fda -bundle-${ pipelineName } -${ new Date ( ) . toISOString ( ) . replace ( / \. \d { 3 } / , '' ) } .zip`
107+ const fileName = `feldera-support -bundle-${ pipelineName } -${ new Date ( ) . toISOString ( ) . replace ( / \. \d { 3 } / , '' ) } .zip`
108108 // // Use simple fetch approach (loads into memory) instead of streaming
109109 triggerFileDownload ( fileName , blob )
110110 }
You can’t perform that action at this time.
0 commit comments