Skip to content
This repository was archived by the owner on Oct 24, 2018. It is now read-only.

Commit dae0f08

Browse files
committed
adds node core modules to ignorePackages array
1 parent 14199bf commit dae0f08

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

index.js

+24-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function getModulesRequiredFromFilename(filename) {
3030
}
3131
}
3232

33-
var missing = [];
33+
var missing = {};
3434
function checkDirectory(dir, ignoreDirs, deps, ignorePackages) {
3535

3636
var deferred = q.defer();
@@ -120,13 +120,29 @@ function depCheck(rootDir, options, cb) {
120120
'.',
121121
'..',
122122
"child_process",
123-
"path",
124-
"os",
125-
"fs",
126-
"dns",
127-
"url",
128-
"querystring",
129-
"events"
123+
"cluster",
124+
"crypto",
125+
"dns",
126+
"domain",
127+
"events",
128+
"fs",
129+
"http",
130+
"https",
131+
"net",
132+
"os",
133+
"path",
134+
"punycode",
135+
"querystring",
136+
"readline",
137+
"smalloc",
138+
"stream",
139+
"string_decoder",
140+
"tls",
141+
"dgram",
142+
"url",
143+
"util",
144+
"vm",
145+
"zlib"
130146
])
131147
.flatten()
132148
.unique()

0 commit comments

Comments
 (0)