Skip to content

Commit cb6f816

Browse files
authored
fix: add pnpm-lock.yaml to default ignore list (#1811)
1 parent 25ab621 commit cb6f816

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

src/copy-filter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { CopyFilterAsync } from 'fs-extra';
1515
const DEFAULT_IGNORES = [
1616
'/package-lock\\.json$',
1717
'/yarn\\.lock$',
18+
'/pnpm-lock\\.yaml$',
1819
'/\\.git($|/)',
1920
'/node_modules/\\.bin($|/)',
2021
'\\.o(bj)?$',

test/copy-filter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ test(
126126
const targetDir = await copyDirToTempDirWithIgnores(t, opts);
127127
await assertFileIgnored(t, targetDir, 'package-lock.json');
128128
await assertFileIgnored(t, targetDir, 'yarn.lock');
129+
await assertFileIgnored(t, targetDir, 'pnpm-lock.yaml');
129130
}),
130131
);
131132
test(

test/fixtures/ignore-package-lock/pnpm-lock.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)