feat: add .nomonicignore config file support - #9
Merged
Conversation
added 6 commits
February 2, 2026 13:59
New ts/ignore.ts module with: - loadIgnorePatterns() reads .nomonicignore from repo root - compilePattern() converts gitignore-style globs to RegExp - isIgnored() tests file paths against compiled patterns Supports *, **, ?, anchored (leading /), and directory (trailing /) patterns. Zero dependencies.
check-staged.ts filters staged files against ignore patterns. scan-repo.ts adds --ignore <pattern> CLI flag and filters file list.
Both bash scripts read .nomonicignore and skip matching paths. scan-repo.sh also accepts --ignore <pattern> CLI flag. Normalizes paths (strips ./ and --dir prefix) for reliable matching.
Scan-repo --dir mode now tries git ls-files scoped to the target directory first, which automatically respects .gitignore rules. Falls back to recursive find/readdir if not inside a git repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.nomonicignorefile support for excluding paths from BIP39 scanning*,**,?, anchored/, directory trailing/check-staged.ts,scan-repo.ts,check-bip39-seeds.sh,scan-repo.shscan-repo.ts,scan-repo.sh) also accept--ignore <pattern>CLI flag.nomonicignorein success outputExample
.nomonicignoreTest plan
ts/ignore.test.ts).nomonicignorewithdrizzle/migrations/*skips migration files--ignoreCLI flag works withscan-repo.sh