follow commonjs spec (test files in test/, lib files in lib/ or named as main in package.json)