@@ -59,17 +59,15 @@ options are:
59
59
60
60
* opts.isFile - function to asynchronously test whether a file exists
61
61
62
- * opts.packageFilter - transform the parsed package.json contents before looking
63
- at the "main" field
62
+ * ` opts.packageFilter(pkg, pkgfile) ` - transform the parsed package.json contents before looking at the "main" field
64
63
65
- * opts.pathFilter(pkg, path, relativePath) - transform a path within a package
64
+ * ` opts.pathFilter(pkg, path, relativePath) ` - transform a path within a package
66
65
* pkg - package data
67
66
* path - the path being resolved
68
67
* relativePath - the path relative from the package.json location
69
68
* returns - a relative path that will be joined from the package.json location
70
69
71
- * opts.paths - require.paths array to use if nothing is found on the normal
72
- node_modules recursive walk (probably don't use this)
70
+ * opts.paths - require.paths array to use if nothing is found on the normal ` node_modules ` recursive walk (probably don't use this)
73
71
74
72
* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: ` "node_modules" `
75
73
@@ -115,11 +113,9 @@ options are:
115
113
116
114
* opts.isFile - function to synchronously test whether a file exists
117
115
118
- * ` opts.packageFilter(pkg, pkgfile) ` - transform the parsed package.json
119
- * contents before looking at the "main" field
116
+ * ` opts.packageFilter(pkg, pkgfile) ` - transform the parsed package.json contents before looking at the "main" field
120
117
121
- * opts.paths - require.paths array to use if nothing is found on the normal
122
- node_modules recursive walk (probably don't use this)
118
+ * opts.paths - require.paths array to use if nothing is found on the normal ` node_modules ` recursive walk (probably don't use this)
123
119
124
120
* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: ` "node_modules" `
125
121
0 commit comments