Generate hard build errors when single-file packages are invalid