Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add bun.lockb to ignorelist #168

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ class PackWalker extends IgnoreWalker {
'/package-lock.json',
'/yarn.lock',
'/pnpm-lock.yaml',
'/bun.lockb',
]

// if we have a files array in our package, we need to pull rules from it
Expand Down
9 changes: 9 additions & 0 deletions test/nested-lock-and-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const pkg = t.testdir({
lock: 'file',
include: false,
}),
'bun.lockb': JSON.stringify({
lock: 'file',
include: false,
}),
lib: {
core: 'no longer excluded dump file',
'package-lock.json': JSON.stringify({
Expand All @@ -27,6 +31,10 @@ const pkg = t.testdir({
lock: 'file',
include: true,
}),
'bun.lockb': JSON.stringify({
lock: 'file',
include: true,
}),
},
core: {
'include-me.txt': 'please include me',
Expand All @@ -42,6 +50,7 @@ t.test('follows npm package ignoring rules', async (t) => {
'lib/package-lock.json',
'package.json',
'lib/yarn.lock',
'lib/bun.lockb',
'core/include-me.txt',
])
})