subquery / subql

SubQuery is an Open, Flexible, Fast and Universal data indexing framework for web3. Our mission is to help developers create the decentralised products of the future.
https://subquery.network
GNU General Public License v3.0
18.94k stars 331 forks source link

Look into dependency sizes for CLI and project #1990

Closed stwiname closed 3 months ago

stwiname commented 1 year ago

The polkadot start installs about 800MB of dependencies right now. This includes the CLI as a dependency. We should look at reducing this.

This file is the output of du -h -d 1 | sort -n on node_modules with the sorting fixed with the units modules_size.txt

Starting with the larger dependencies I think there are a few easy wins, these changes will probably need to be made to common and types packages for each chain.

jamesbayly commented 1 year ago

The linked PR doesn't relate to this?

stwiname commented 1 year ago

This was incorrectly marked as fixed, reopened

stwiname commented 1 year ago

After the oclif update we're down to 580MB

modules_size.txt

stwiname commented 3 months ago

Closing this as we've reduced the size from >300MB to <100MB. If this is picked up again looking into the dependencies of class-transformer would be the next place to look.