nyc's instrument command can be used to instrument source files outside of the context of your unit-tests:
nyc instrument ./lib ./output