make-folder-txt 1.3.0 → 1.3.1
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/bin/make-folder-txt.js +4 -2
- package/package.json +1 -1
package/bin/make-folder-txt.js
CHANGED
|
@@ -6,7 +6,7 @@ const { version } = require("../package.json");
|
|
|
6
6
|
|
|
7
7
|
// ── config ────────────────────────────────────────────────────────────────────
|
|
8
8
|
const IGNORE_DIRS = new Set(["node_modules", ".git", ".next", "dist", "build", ".cache"]);
|
|
9
|
-
const IGNORE_FILES = new Set([".DS_Store", "Thumbs.db", "desktop.ini"]);
|
|
9
|
+
const IGNORE_FILES = new Set([".DS_Store", "Thumbs.db", "desktop.ini", ".txtignore"]);
|
|
10
10
|
|
|
11
11
|
const BINARY_EXTS = new Set([
|
|
12
12
|
".png", ".jpg", ".jpeg", ".gif", ".bmp", ".ico", ".svg", ".webp",
|
|
@@ -123,7 +123,9 @@ function collectFiles(
|
|
|
123
123
|
if (ignoreFiles.has(entry.name)) return;
|
|
124
124
|
|
|
125
125
|
// Check against .txtignore patterns
|
|
126
|
-
if (txtIgnore.has(entry.name))
|
|
126
|
+
if (txtIgnore.has(entry.name)) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
127
129
|
|
|
128
130
|
// Ignore .txt files that match the folder name (e.g., foldername.txt)
|
|
129
131
|
if (entry.name.endsWith('.txt') && entry.name === `${rootName}.txt`) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "make-folder-txt",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Generate a single .txt file containing the full folder structure and file contents of any project, ignoring node_modules and other junk.",
|
|
5
5
|
"main": "bin/make-folder-txt.js",
|
|
6
6
|
"bin": {
|