File tree Expand file tree Collapse file tree 3 files changed +29
-10
lines changed
Expand file tree Collapse file tree 3 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 11import { $ } from "bun" ;
22import { buildClientPackages } from "./misc/helpers" ;
33
4+ console . log ( "✨ Build packages\n" ) ;
5+
46await buildClientPackages ( ) ;
57
6- await $ `bun run --filter="@superstreamer/api" build` ;
7- await $ `bun run --filter="@superstreamer/app" build` ;
8- await $ `bun run --filter="@superstreamer/artisan" build` ;
9- await $ `bun run --filter="@superstreamer/stitcher" build` ;
8+ console . log ( "\n✨ Build apps\n" ) ;
9+
10+ const apps = [ "api" , "app" , "artisan" , "stitcher" ] ;
11+
12+ for ( const app of apps ) {
13+ console . log ( `👷 app [${ app } ] building` ) ;
14+ await $ `bun run --filter="@superstreamer/${ app } " build` ;
15+ console . log ( `✅ app [${ app } ]` ) ;
16+ if ( app !== apps [ apps . length - 1 ] ) {
17+ console . log ( "" ) ;
18+ }
19+ }
20+
21+ console . log ( "\n🎉 all done!" ) ;
Original file line number Diff line number Diff line change 11import { $ } from "bun" ;
22import { buildClientPackages } from "./misc/helpers" ;
33
4+ console . log ( "✨ Build packages\n" ) ;
5+
46await buildClientPackages ( ) ;
57
8+ console . log ( "\n✨ Starting dev\n" ) ;
9+
610await $ `bun run --filter="@superstreamer/*" dev` ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { $ } from "bun";
33export async function buildClientPackages ( options ?: { exclude : string [ ] } ) {
44 let packageNames = [
55 // Build player for app.
6- "@superstreamer/ player" ,
6+ "player" ,
77 ] ;
88
99 if ( options ?. exclude ) {
@@ -12,9 +12,12 @@ export async function buildClientPackages(options?: { exclude: string[] }) {
1212 ) ;
1313 }
1414
15- await Promise . all (
16- packageNames . map ( ( name ) => {
17- return $ `bun run --filter="${ name } " build` ;
18- } ) ,
19- ) ;
15+ for ( const packageName of packageNames ) {
16+ console . log ( `👷 package [${ packageName } ] building` ) ;
17+ await $ `bun run --filter="@superstreamer/${ packageName } " build` ;
18+ console . log ( `✅ package [${ packageName } ]` ) ;
19+ if ( packageName !== packageNames [ packageNames . length - 1 ] ) {
20+ console . log ( "" ) ;
21+ }
22+ }
2023}
You can’t perform that action at this time.
0 commit comments