prune down publish.js