diff --git a/bin/gstack-diff-scope b/bin/gstack-diff-scope index 2cff90c70f..36918381ce 100755 --- a/bin/gstack-diff-scope +++ b/bin/gstack-diff-scope @@ -57,7 +57,7 @@ while IFS= read -r f; do *.md) DOCS=true ;; # Config - package.json|package-lock.json|yarn.lock|bun.lockb) CONFIG=true ;; + package.json|package-lock.json|yarn.lock|bun.lock|bun.lockb) CONFIG=true ;; Gemfile|Gemfile.lock) CONFIG=true ;; *.yml|*.yaml) CONFIG=true ;; .github/*) CONFIG=true ;; diff --git a/test/diff-scope.test.ts b/test/diff-scope.test.ts index 44cfe03f3b..2130a3e570 100644 --- a/test/diff-scope.test.ts +++ b/test/diff-scope.test.ts @@ -140,6 +140,12 @@ describe('gstack-diff-scope', () => { expect(scope.SCOPE_AUTH).toBe('true'); }); + test('detects config via bun.lock (Bun v1.2+ text lockfile)', () => { + const dir = createRepo(['bun.lock']); + const scope = runScope(dir); + expect(scope.SCOPE_CONFIG).toBe('true'); + }); + test('returns false for all new signals when no matching files', () => { const dir = createRepo(['docs/readme.md', 'config.yml']); const scope = runScope(dir);