Skip to content

Commit

Permalink
use import instead of require, phetsims/perennial#410
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 18, 2024
1 parent 35d0069 commit ccdc020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/grunt/tasks/compare-phet-io-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import IntentionalAny from '../../../../phet-core/js/types/IntentionalAny.js';
import getSimList from '../../common/getSimList.js';
import transpile from '../../common/transpile.js';
import generatePhetioMacroAPI from '../../phet-io/generatePhetioMacroAPI.js';
import phetioCompareAPISets from '../../phet-io/phetioCompareAPISets';
import getPhetLibs from '../getPhetLibs.js';

const repo = getRepo();
Expand Down Expand Up @@ -59,7 +60,7 @@ let proposedAPIs: Record<string, object | null> | null = null;
if ( getOption( 'compareBreakingAPIChanges' ) ) {
options.compareBreakingAPIChanges = getOption( 'compareBreakingAPIChanges' );
}
const ok = await require( '../../phet-io/phetioCompareAPISets' )( sims, proposedAPIs, options );
const ok = await phetioCompareAPISets( sims, proposedAPIs, options );
!ok && grunt.fail.fatal( 'PhET-iO API comparison failed' );

} )();

0 comments on commit ccdc020

Please sign in to comment.