diff --git a/lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.sync.js b/lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.sync.js index 979c39b6859c..e53772ea0d41 100644 --- a/lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.sync.js +++ b/lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/entries.sync.js @@ -59,7 +59,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++ ) { @@ -68,12 +68,12 @@ 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': [] - }; + }); } debug( 'Finished determining main entry points.' );