Why does Typst not find packages in ./local/share/typst?

Hey folks,

If it helps anything: I just had the XDG_DATA_HOME="$HOME/.local/share" line in bashrc commented out by accident and suddenly that variable held the path /home/USERNAME/snap/code/211/.local/share .