We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4e2d9 commit 3efce08Copy full SHA for 3efce08
tools/conversion.js
100644
100755
@@ -1,3 +1,7 @@
1
+#! /usr/bin/env node
2
+
3
+'use strict'
4
5
const fs = require('fs');
6
const path = require('path');
7
@@ -237,9 +241,13 @@ paths.forEach(function(dirEntry) {
237
241
});
238
242
239
243
function listFiles(dir, filelist) {
240
- files = fs.readdirSync(dir);
244
+ var files = fs.readdirSync(dir);
245
filelist = filelist || [];
246
files.forEach(function(file) {
247
+ if (file === 'node_modules') {
248
+ return
249
+ }
250
251
if (fs.statSync(path.join(dir, file)).isDirectory()) {
252
filelist = listFiles(path.join(dir, file), filelist);
253
} else {
0 commit comments