discover: Change parsers to emit resources rather than filenames