Make doCommand(cmd) its own thing; i.e. modularizing code.
Move package.json out of deprecation.