Depends on the subfields. CS is by publication, number theory varies ("my students can find a stapler" to the dissertation has revolutionary result not published elsewhere)
1. literal stapler thesis, or
2. cleaned up version of a stapler thesis (e.g. rewrite of several previous publications to give broader context etc)