Skip to content

Commit ef989a1

Browse files
authored
Include additional VCS directories to ignore (#683)
npm’s list is incomplete for VCSs. Since they can sometimes execute scripts without the users knowledge & since only the source, not the entire history, is needed, it should be safe to ignore them. Additionally clarified these as a separate bullet point in the spec.
1 parent 4cd57a1 commit ef989a1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

SPEC.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ These files are always included in the tarball, if present:
426426

427427
These files are always excluded from the tarball, regardless of what is specified in the `files` key:
428428

429-
- `.psci`, `.psci_modules`, `.spago`, `node_modules`, `bower_components`, `.git`, `CVS`, `.svn`, and `.hg` directories.
429+
- `.psci`, `.psci_modules`, `.spago`, `node_modules`, and `bower_components` directories.
430+
- `.git`, `CVS`, `.svn`, `.hg`, `_darcs`, `.fossil`, `.jj`, and `.pijul` <abbr title="version control system">VCS</abbr> directories.
430431
- `package-lock.json`, `yarn.lock`, and `pnpm-lock.yaml` files.
431432
- `.swp`, `._*`, and `.DS_Store` files.
432433

lib/src/Constants.purs

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ ignoredDirectories =
4141
, "CVS"
4242
, ".svn"
4343
, ".hg"
44+
-- Additional VCS directories
45+
, "_darcs"
46+
, ".fossil"
47+
, ".jj"
48+
, ".pijul"
4449
]
4550

4651
ignoredFiles :: Array FilePath

0 commit comments

Comments
 (0)