Skip to content
Source
Sign inSign up
TanStack/intent

fix: match nested review sources before the node_modules exclude #302

Mergedviclafouch(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/302/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 3 changed files with 20 additions and 1 deletion.

x
0 of 3 viewed, 3 left
5 additions and 0 deletions.changeset/review-source-pathspec-order.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Match a skill source in `review` when its path is nested. Git dropped the matches when the source came before the `node_modules` exclude, so a valid source reported no available files.
1 addition and 1 deletionpackages/intent/src/review/review.tsModified
View file
@@ -404,8 +404,8 @@
'--exclude-standard',
'-z',
'--',
- ...patterns,
dependencyExclude,
+ ...patterns,
]),
const diff = (patterns: Array<string> = [], from = base) =>
14 additions and 0 deletionspackages/intent/tests/review.test.tsModified
View file
@@ -229,6 +229,20 @@
​
+it('matches a single nested source while excluding installed dependencies', () => {
+ write('packages/client/src/index.ts', 'export const client = true\n')
+ write('packages/client/src/node_modules/installed/index.ts', 'dependency\n')
+ skill(['acme/library:packages/client/src/**'])