From 070bca42fac0305b30baacd56e5a749c0a5f2a9a Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 23 Nov 2022 18:16:10 -0700 Subject: [PATCH] Resolve after cleanup, see https://github.com/phetsims/perennial/issues/268 --- js/phet-io/generatePhetioMacroAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/phet-io/generatePhetioMacroAPI.js b/js/phet-io/generatePhetioMacroAPI.js index 3cd2f75e4..7371dc3c8 100644 --- a/js/phet-io/generatePhetioMacroAPI.js +++ b/js/phet-io/generatePhetioMacroAPI.js @@ -112,6 +112,7 @@ const generatePhetioMacroAPI = async ( repos, options ) => { const fullAPI = messageText; + await cleanup(); resolve( { // to keep track of which repo this is for @@ -120,7 +121,6 @@ const generatePhetioMacroAPI = async ( repos, options ) => { // For machine readability api: JSON.parse( fullAPI ) } ); - await cleanup(); } else if ( msg.type() === 'error' ) {