File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 26
26
},
27
27
"scripts" : {
28
28
"build" : " run-p build:cjs build:esm build:bundle" ,
29
- "build:bundle" : " rollup --config " ,
29
+ "build:bundle" : " bash scripts/buildBundles.sh " ,
30
30
"build:cjs" : " tsc -p tsconfig.cjs.json" ,
31
31
"build:dev" : " run-s build:cjs build:esm" ,
32
32
"build:es5" : " yarn build:cjs # *** backwards compatibility - remove in v7 ***" ,
Original file line number Diff line number Diff line change
1
+ for filepath in ./src/* ; do
2
+ file=$( basename $filepath )
3
+
4
+ # the index file is only there for the purposes of npm builds - for the CDN we create a separate bundle for each
5
+ # integration - so we can skip it here
6
+ if [[ $file == " index.ts" ]]; then
7
+ continue
8
+ fi
9
+
10
+ # run the build for each integration, pushing each build process into the background once it starts (that's what the
11
+ # trailing `&` does) so that we can start another one
12
+ echo -e " \nBuilding bundles for \` $file \` ..."
13
+ INTEGRATION_FILE=$file yarn --silent rollup -c rollup.config.js 2> /dev/null && echo -e " \nFinished building bundles for \` $file \` ." &
14
+
15
+ done
16
+
17
+ # keep the process running until all backgrounded tasks have finished
18
+ wait
19
+
20
+ echo " Integration bundles built successfully"
You can’t perform that action at this time.
0 commit comments