File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ fs.readdir(
2525 console . log ( `error copying readme file: ${ err } ` ) ;
2626 }
2727
28+ // If the kit is a worker, copy the worker.wasm file to the output directory with the kit name
29+ if ( metadata . type === 'worker' ) {
30+ try {
31+ fs . copyFileSync ( `${ KITS_DIR } /${ d } /worker.wasm` , `${ OUTPUT_DIR } /${ d } .wasm` ) ;
32+ } catch ( err ) {
33+ console . log ( `error copying worker file: ${ err } ` ) ;
34+ }
35+ }
36+
2837 result . push ( { key : d , ...metadata } ) ;
2938 } ) ;
3039
Original file line number Diff line number Diff line change 1+ title : Worker Example
2+ logo : https://txpipe.io/images/txpipe.svg
3+ description : A simple worker example that includes a say-hello method.
4+ repository : https://github.com/txpipe/awesome-starter-kits
5+ type : worker
6+ features :
7+ - worker
8+ wasm : https://github.com/txpipe/awesome-starter-kits/releases/latest/download/worker-example.wasm
9+ config :
10+ custom_hello : Hi
11+ author :
12+ name : TxPipe
13+ website : https://txpipe.io
14+ logo : https://txpipe.io/images/txpipe.svg
15+ social :
16+ twitter : txpipe_tools
17+ discord : eVc6HJrYmP
You can’t perform that action at this time.
0 commit comments