prune: --production option to unbuild devDependencies

Closes #2854.