flatten-tool 1.6.3 → 1.6.4

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.
Files changed (2) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -178,7 +178,7 @@ export async function flattenDirectory(
178
178
  const indent = ' '.repeat(depth);
179
179
 
180
180
  // Add .. if we have a parent
181
- if (parentPath !== null) {
181
+ if (parentPath !== null && depth === 0) {
182
182
  const parentAnchor = anchorMap.get(parentPath) ?? '';
183
183
  result += `${indent}- [..](#${parentAnchor})\n`;
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatten-tool",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "CLI tool to flatten directory structures: merge files into a single Markdown file (default) or copy/move to a flat directory with escaped filenames. Respects .gitignore, supports move/overwrite, and more.",
5
5
  "module": "index.ts",
6
6
  "type": "module",