File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 77 "scripts" : {
88 "typecheck" : " tsgo --noEmit" ,
99 "test" : " bun test" ,
10- "build" : " ./ script/build.ts" ,
10+ "build" : " bun run script/build.ts" ,
1111 "dev" : " bun run --conditions=browser ./src/index.ts" ,
1212 "random" : " echo 'Random script updated at $(date)' && echo 'Change queued successfully' && echo 'Another change made' && echo 'Yet another change' && echo 'One more change' && echo 'Final change' && echo 'Another final change' && echo 'Yet another final change'" ,
1313 "clean" : " echo 'Cleaning up...' && rm -rf node_modules dist" ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import pkg from "../package.json"
1616import { Script } from "@opencode-ai/script"
1717
1818const singleFlag = process . argv . includes ( "--single" )
19+ const baselineFlag = process . argv . includes ( "--baseline" )
1920const skipInstall = process . argv . includes ( "--skip-install" )
2021
2122const allTargets : {
@@ -78,7 +79,19 @@ const allTargets: {
7879]
7980
8081const targets = singleFlag
81- ? allTargets . filter ( ( item ) => item . os === process . platform && item . arch === process . arch )
82+ ? allTargets . filter ( ( item ) => {
83+ if ( item . os !== process . platform || item . arch !== process . arch ) {
84+ return false
85+ }
86+
87+ // When building for the current platform, prefer a single native binary by default.
88+ // Baseline binaries require additional Bun artifacts and can be flaky to download.
89+ if ( item . avx2 === false ) {
90+ return baselineFlag
91+ }
92+
93+ return true
94+ } )
8295 : allTargets
8396
8497await $ `rm -rf dist`
You can’t perform that action at this time.
0 commit comments