csvan
csvan

Reputation: 9474

Does NPM publish compress by default?

As per the documentation npm publish accepts either a folder or tarball as argument. If a folder is the target, will npm publish and/or the target registry perform any kind of compression of the folder in question?

Upvotes: 1

Views: 518

Answers (1)

Mitch Lillie
Mitch Lillie

Reputation: 2407

Yes.

npm publish delegates to pack.packDirectory in case of a directory as an argument, which uses the npm-packlist package and eventually creates a tar.

Upvotes: 1

Related Questions