egoist/package-size

bug: unable to get size of local file

Hotell opened this issue ยท 1 comments

I wanna check library bundle size:

Libary output:

image

yarn package-size ./dist/bundles/index.esm.js

๐Ÿšจ throws error:

 ERROR  Compiled with errors!

TypeError: Cannot read property 'version' of undefined
    at info.versionedName.parsed.map.pkg (/Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/package-size/lib/index.js:243:81)
    at Array.map (<anonymous>)
    at /Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/package-size/lib/index.js:241:8
    at Generator.next (<anonymous>)
    at onFulfilled (/Users/hotell/Projects/devel/github/@hotell/typescript-lib-starter/node_modules/co/index.js:65:19)
    at <anonymous>

๐ŸŽ‰ This issue has been resolved in version 2.2.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€