Charm-quark hadronisation can be investigated by measuring the relative abundance of various particle species, in particular non-strange D mesons ($\rm{D^0}$, $\rm{D^+}$, $\rm{D^{*+}}$), $\rm{D_s^+}$ mesons, and charm baryons ($\rm{\Lambda_{c}^+}$, $\rm{\Xi_c^0}$). The high precision tracking, excellent vertexing capabilities and particle identification granted by the ALICE apparatus allows hadrons containing charm quarks to be measured over a wide momentum range in pp and pA collisions. Measurements of the charmed-baryon production in small systems are also a fundamental reference for heavy-ion collisions, where an enhancement of the baryon-to-meson ratio could derive from hadronisation via coalescence of charm quarks with the quarks in the Quark$-$Gluon Plasma.
In this contribution, recent measurements of charmed meson and baryon production in pp collisions and in p--Pb collisions with the ALICE experiment are presented and compared with theoretical calculations. The results include the $p_{\rm T}$-differential cross section of $\rm{\Lambda_{c}^+}$ and $\rm{\Xi_c^0}$ baryons, and the baryon-meson ratio $\rm{\Lambda_{c}^+} / \rm{D^0}$. The measured values of $\rm{\Lambda_{c}^+} / \rm{D^0}$ baryon-meson ratio are significantly higher than expected from model calculations and previous measurements at e$^+$e$^-$ and ep colliders.