@gld5000-cli/dependency-finder 1.0.4 → 1.0.6
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/README.md +1 -1
- package/bin/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.mjs +1 -2
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npx @gld5000-cli/dependency-finder [Component directory] [Dependents paths] [Fil
|
|
|
45
45
|
| **Component directory** | Glob pattern for component files to analyze | `./components/**/*.tsx` | `./src/components/**/*.tsx` |
|
|
46
46
|
| **Dependents paths** | Pipe-separated glob patterns for where to search for imports | `./components/**/*.tsx\|./pages/**/*.tsx` | `./src/**/*.tsx\|./app/**/*.ts` |
|
|
47
47
|
| **File ignore patterns** | Pipe-separated patterns to exclude from analysis | `.test\|.stories` | `.test\|.spec\|.mock` |
|
|
48
|
-
| **PascalCase only** | Filter exports to PascalCase names only (React components) | `
|
|
48
|
+
| **PascalCase only** | Filter exports to PascalCase names only (React components) | `y` | `y` or `n` |
|
|
49
49
|
|
|
50
50
|
### Example Usage
|
|
51
51
|
|
package/bin/index.mjs
CHANGED
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -20,10 +20,9 @@ export function runDependencyFinder(
|
|
|
20
20
|
) {
|
|
21
21
|
// Get files with TSX exports
|
|
22
22
|
const allDependents = findDependentsInTargetPaths(
|
|
23
|
-
findComponents(searchPattern, ignorePatterns),
|
|
23
|
+
findComponents(searchPattern, ignorePatterns, isPascalCase),
|
|
24
24
|
targetPaths,
|
|
25
25
|
ignorePatterns,
|
|
26
|
-
isPascalCase,
|
|
27
26
|
);
|
|
28
27
|
const noDependents = filterNoDependents(allDependents);
|
|
29
28
|
const someDependents = filterSomeDependents(allDependents);
|