Which version of MediaWiki introduced packageFiles? In particular, is it available in 1.31?
Topic on Talk:ResourceLoader/Package files
Package files was introduced in MediaWiki 1.33. I've added this to the documentation page now!
I've also patched the API docs to mention this on doc.wikimedia.org.