diff --git a/src/copy-filter.ts b/src/copy-filter.ts index 405aebf7..87506af4 100644 --- a/src/copy-filter.ts +++ b/src/copy-filter.ts @@ -15,6 +15,7 @@ import { CopyFilterAsync } from 'fs-extra'; const DEFAULT_IGNORES = [ '/package-lock\\.json$', '/yarn\\.lock$', + '/pnpm-lock\\.yaml$', '/\\.git($|/)', '/node_modules/\\.bin($|/)', '\\.o(bj)?$', diff --git a/test/copy-filter.js b/test/copy-filter.js index 605ef240..03d5ee77 100644 --- a/test/copy-filter.js +++ b/test/copy-filter.js @@ -126,6 +126,7 @@ test( const targetDir = await copyDirToTempDirWithIgnores(t, opts); await assertFileIgnored(t, targetDir, 'package-lock.json'); await assertFileIgnored(t, targetDir, 'yarn.lock'); + await assertFileIgnored(t, targetDir, 'pnpm-lock.yaml'); }), ); test( diff --git a/test/fixtures/ignore-package-lock/pnpm-lock.yaml b/test/fixtures/ignore-package-lock/pnpm-lock.yaml new file mode 100644 index 00000000..e69de29b