@awesomeness-js/utils 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/build.js +3 -3
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -16,7 +16,7 @@ function shouldIgnore(filePath, ignorePatterns) {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
});
|
|
19
|
-
console.log('shouldIgnore', filePath, ignore);
|
|
19
|
+
//console.log('shouldIgnore', filePath, ignore);
|
|
20
20
|
return ignore;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ function getAllFiles(base, dir, files = [], ignore = []) {
|
|
|
24
24
|
const directory = join(base, dir);
|
|
25
25
|
const normalizedDir = dir.replace(/\\/g, '/');
|
|
26
26
|
if (ignore.some(pattern => normalizedDir.startsWith(pattern.replace(/\/\*$/, '')))) {
|
|
27
|
-
|
|
27
|
+
//.log('Ignoring folder:', normalizedDir);
|
|
28
28
|
return files;
|
|
29
29
|
}
|
|
30
30
|
let sortedFiles = readdirSync(directory).sort();
|
|
@@ -32,7 +32,7 @@ function getAllFiles(base, dir, files = [], ignore = []) {
|
|
|
32
32
|
const fullPath = join(directory, file);
|
|
33
33
|
const relativePath = join(dir, file).replace(/\\/g, '/');
|
|
34
34
|
if (shouldIgnore(relativePath, ignore)) {
|
|
35
|
-
console.log('Ignoring file:', relativePath);
|
|
35
|
+
//console.log('Ignoring file:', relativePath);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
if (statSync(fullPath).isDirectory() && file !== '_template') {
|