Skip to content

Commit 3d5499c

Browse files
magicmarkclaude
andcommitted
Add -maxdepth 1 guard to prevent searching nested directories
The find command now uses -maxdepth 1 to restrict the search to the top-level directory only, preventing unintended matches in subdirectories like node_modules. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f1572ca commit 3d5499c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"suggest:format": "echo \"\nTo resolve this, run: $(tput bold)npm run format$(tput sgr0)\" && exit 1",
1212
"test:format": "prettier --check . || npm run suggest:format",
1313
"test:spelling": "cspell \"spec/**/*.md\" README.md LICENSE.md",
14-
"test:structure": "find . -type d -name 'GAP-*' -exec ./scripts/validate-structure.js {} \\;"
14+
"test:structure": "find . -maxdepth 1 -type d -name 'GAP-*' -exec ./scripts/validate-structure.js {} \\;"
1515
},
1616
"devDependencies": {
1717
"ajv": "^8.17.1",

0 commit comments

Comments
 (0)