yarn pack
Creates a compressed gzip archive of package dependencies.
yarn pack --filename <filename>
Creates a compressed gzip archive of package dependencies and names the file filename.