diff --git a/lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/entries.sync.js b/lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/entries.sync.js index efad04bd2da4..8abaf6c54f71 100644 --- a/lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/entries.sync.js +++ b/lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/entries.sync.js @@ -60,7 +60,7 @@ function entryPoints( pkgs ) { var k; total = pkgs.length; - out = new Array( total ); + out = []; debug( 'Determining main entry points for %d packages...', total ); for ( i = 0; i < total; i++ ) { @@ -69,14 +69,14 @@ function entryPoints( pkgs ) { main = pkgs[ i ].id; debug( 'Determined main entry point for package: %s (%d of %d). Main: %s', pkg, k, total, main ); - out[ i ] = { + out.push({ 'id': main, 'pkg': pkg, 'dir': pkgs[ i ].dir, 'entries': [ main ] - }; + }); } debug( 'Finished determining main entry points.' );