Parses .npmignore and .gitignore files for package publishing.
Determines which files to include/exclude when packing or publishing a package, following npm's ignore rules.
Summary
Functions
Returns the list of always-ignored paths.
Gets the effective ignore patterns for a package directory.
Checks if a file path is ignored by the given patterns.
Returns the list of never-ignored paths.
Parses ignore file content into a list of patterns.
Reads and parses an ignore file.
Functions
@spec always_ignored() :: [String.t()]
Returns the list of always-ignored paths.
Gets the effective ignore patterns for a package directory.
Checks .npmignore first, falls back to .gitignore.
Checks if a file path is ignored by the given patterns.
@spec never_ignored() :: [String.t()]
Returns the list of never-ignored paths.
Parses ignore file content into a list of patterns.
Reads and parses an ignore file.