Run rebuild during prepublish.