yarn pack

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.

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/cli/pack