Closed isaacs closed 13 years ago
The npm package for now.js is pretty huge, despite the fact that it is a relatively small program. Here's why:
include/Socket.IO
I'd recommend:
require("socket.io")
npm prune
That would bring the file count down from 989 to 24.
Thanks for informing us, Isaac. I forced a publish so that future installs won't have the extra cruft.
Ah, much nicer!
The npm package for now.js is pretty huge, despite the fact that it is a relatively small program. Here's why:
include/Socket.IO
Since socket.io is already listed as a dep, it seems unnecessary to put it in ./include as well.I'd recommend:
include/Socket.IO
(or adding it to a .npmignore file) in favor of doingrequire("socket.io")
to get the npm-installed dependencynpm prune
command can do this for you)