Skip to content

feat(bld): add option to ignore files/folder during file globbing#1615

Open
Furin wants to merge 1 commit into
nwutils:mainfrom
Furin:patch-2
Open

feat(bld): add option to ignore files/folder during file globbing#1615
Furin wants to merge 1 commit into
nwutils:mainfrom
Furin:patch-2

Conversation

@Furin

@Furin Furin commented Jun 29, 2026

Copy link
Copy Markdown
  • It isn't currently possible to ignore files or folders in a build. The glob package does expose the ability to use ignore functionality but that isn't utilized in the current glob implementation in util.js. This change implements that using the traditional ! prefix to denote ignored patterns.

Notes: The change incidentally also removes the looping that was previously there because the glob function accepts arrays of patterns, using that functionality is critical when trying to use the ignore functionality.

Closes: #1613

It isn't currently possible to ignore files or folders in a build. The glob package does expose the ability to use ignore functionality but that isn't utilized in the current glob implementation in util.js. This change implements that using the traditional `!` prefix to denote ignored patterns.
@ayushmanchhabra ayushmanchhabra changed the title Implements Usage of Glob Ignore Functionality feat(bld): add option to ignore files/folder during file globbing Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot ignore folders using glob.

1 participant