From 0b1bf5be8e9683df14114fbefd40f6a5d4c8855d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Fri, 30 Jul 2021 17:01:38 +0200 Subject: [PATCH] Fix globbing patterns used for jQuery UI 1.12 files list generation `fast-glob` to which we switched from `glob` doesn't seem to exclude dotfiles in a path segment matched by an exclusion; explicitly exclude dotfiles in the pattern to account for that. Without this fix, directories like `.git` would end up in the zip file generated for CDN purposes. --- lib/jquery-ui-files-1-12.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jquery-ui-files-1-12.js b/lib/jquery-ui-files-1-12.js index 92dd2cf8..0b77bb93 100644 --- a/lib/jquery-ui-files-1-12.js +++ b/lib/jquery-ui-files-1-12.js @@ -16,8 +16,8 @@ function JqueryUiFiles_1_12_0( jqueryUi ) { readFile = this.readFile; stripJqueryUiPath = this.stripJqueryUiPath; - glob( jqueryUi.path + "!(node_modules|build)" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); - glob( jqueryUi.path + "!(node_modules|build)/**" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); + glob( jqueryUi.path + "!(.*|node_modules|build)" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); + glob( jqueryUi.path + "!(.*|node_modules|build)/**" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); this.componentFiles = Files( glob( jqueryUi.path + "ui/**/*.js" ).map( stripJqueryUiPath ).map( readFile ) );