@@ -90,6 +90,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
9090 join ( dir , `clipboard.js-${ version } ` , "dist" , "clipboard.min.js" ) ,
9191 clipboardJs ,
9292 ) ;
93+ return Promise . resolve ( ) ;
9394 } ,
9495 ) ;
9596 cleanSourceMap ( clipboardJs ) ;
@@ -131,6 +132,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
131132 "import dayjs from 'dayjs'" ,
132133 "dayjs.locale(locale, null, true)" ,
133134 ] ;
135+ info ( "Visiting lines of " + targetFile ) ;
134136 const output : string [ ] = [ ] ;
135137 await visitLines ( targetFile , ( line : string | null , _count : number ) => {
136138 if ( line !== null ) {
@@ -177,6 +179,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
177179 join ( dir , `list.js-${ version } ` , "dist" , "list.min.js" ) ,
178180 listJs ,
179181 ) ;
182+ return Promise . resolve ( ) ;
180183 } ,
181184 ) ;
182185
@@ -194,6 +197,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
194197 join ( dir , `zenscroll-${ version } ` , "zenscroll-min.js" ) ,
195198 zenscrollJs ,
196199 ) ;
200+ return Promise . resolve ( ) ;
197201 } ,
198202 ) ;
199203
@@ -228,6 +232,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
228232 join ( dir , `Fuse-${ version } ` , "dist" , "fuse.min.js" ) ,
229233 fuseJs ,
230234 ) ;
235+ return Promise . resolve ( ) ;
231236 } ,
232237 ) ;
233238 cleanSourceMap ( fuseJs ) ;
@@ -272,6 +277,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
272277 join ( dir , `reveal.js-${ version } ` , "plugin" ) ,
273278 join ( revealJs , "plugin" ) ,
274279 ) ;
280+ return Promise . resolve ( ) ;
275281 } ,
276282 true ,
277283 false ,
@@ -297,6 +303,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
297303 join ( dir , `reveal.js-plugins-${ version } ` , "chalkboard" ) ,
298304 revealJsChalkboard ,
299305 ) ;
306+ return Promise . resolve ( ) ;
300307 } ,
301308 true , // not a commit
302309 ) ;
@@ -338,6 +345,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
338345 join ( dir , `reveal.js-menu-${ version } ` , "font-awesome" ) ,
339346 join ( revealJsChalkboard , "font-awesome" ) ,
340347 ) ;
348+ return Promise . resolve ( ) ;
341349 } ,
342350 false , // not a commit
343351 false , // no v prefix
@@ -363,6 +371,7 @@ export async function updateHtmlDepedencies(config: Configuration) {
363371 join ( dir , `reveal-pdfexport-${ version } ` , "pdfexport.js" ) ,
364372 join ( revealJsPdfExport , "pdfexport.js" ) ,
365373 ) ;
374+ return Promise . resolve ( ) ;
366375 } ,
367376 false , // not a commit
368377 false , // no v prefix
@@ -741,7 +750,7 @@ async function updateGithubSourceCodeDependency(
741750 repo : string ,
742751 versionEnvVar : string ,
743752 working : string ,
744- onDownload : ( dir : string , version : string ) => void ,
753+ onDownload : ( dir : string , version : string ) => Promise < void > ,
745754 commit = false , // set to true when commit is used instead of a tag
746755 vPrefix = true , // set to false if github tags don't use a v prefix
747756) {
@@ -762,7 +771,7 @@ async function updateGithubSourceCodeDependency(
762771 await download ( distUrl , zipFile ) ;
763772 await unzip ( zipFile , working ) ;
764773
765- onDownload ( working , version ) ;
774+ await onDownload ( working , version ) ;
766775 } else {
767776 throw new Error ( `${ versionEnvVar } is not defined` ) ;
768777 }
0 commit comments