Skip to content

Commit c8b4bfa

Browse files
committed
feat: add bun.lockb to ignorelist
relates npm#48
1 parent 5134994 commit c8b4bfa

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ class PackWalker extends IgnoreWalker {
290290
'/package-lock.json',
291291
'/yarn.lock',
292292
'/pnpm-lock.yaml',
293+
'/bun.lockb',
293294
]
294295

295296
// if we have a files array in our package, we need to pull rules from it

test/nested-lock-and-core.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const pkg = t.testdir({
1717
lock: 'file',
1818
include: false,
1919
}),
20+
'bun.lockb': JSON.stringify({
21+
lock: 'file',
22+
include: false,
23+
}),
2024
lib: {
2125
core: 'no longer excluded dump file',
2226
'package-lock.json': JSON.stringify({
@@ -27,6 +31,10 @@ const pkg = t.testdir({
2731
lock: 'file',
2832
include: true,
2933
}),
34+
'bun.lockb': JSON.stringify({
35+
lock: 'file',
36+
include: true,
37+
}),
3038
},
3139
core: {
3240
'include-me.txt': 'please include me',
@@ -42,6 +50,7 @@ t.test('follows npm package ignoring rules', async (t) => {
4250
'lib/package-lock.json',
4351
'package.json',
4452
'lib/yarn.lock',
53+
'lib/bun.lockb',
4554
'core/include-me.txt',
4655
])
4756
})

0 commit comments

Comments
 (0)