Skip to content

Commit 3efce08

Browse files
mcollinamhdawson
authored andcommitted
Avoid node_modules during conversion
PR-URL: #112 Reviewed-By: Michael Dawson <[email protected]>
1 parent 2b4e2d9 commit 3efce08

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tools/conversion.js

100644100755
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#! /usr/bin/env node
2+
3+
'use strict'
4+
15
const fs = require('fs');
26
const path = require('path');
37

@@ -237,9 +241,13 @@ paths.forEach(function(dirEntry) {
237241
});
238242

239243
function listFiles(dir, filelist) {
240-
files = fs.readdirSync(dir);
244+
var files = fs.readdirSync(dir);
241245
filelist = filelist || [];
242246
files.forEach(function(file) {
247+
if (file === 'node_modules') {
248+
return
249+
}
250+
243251
if (fs.statSync(path.join(dir, file)).isDirectory()) {
244252
filelist = listFiles(path.join(dir, file), filelist);
245253
} else {

0 commit comments

Comments
 (0)