Skip to content

Commit

Permalink
Fix frontend build issue for Arches installed with pipenv, poetry or uv
Browse files Browse the repository at this point in the history
Resolves archesproject#11764

The convention of naming a virtual environment "`.venv`" appears to have been adopted
by the above package managers.

The fix addresses the issue of templates in directories that contain a dot (specifically
for Arches installed with the above package managers) while ensuring that dotfiles, such
as macOS' .DS_Store (archesproject#11094), are ignored.
  • Loading branch information
danbentley committed Feb 4, 2025
1 parent 71ce342 commit d669c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/webpack-utils/build-filepath-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function buildFilepathLookup(path, staticUrlPrefix) {

return getFileList(path).reduce((lookup, file) => {
// Ignore dotfiles
if (file.match(new RegExp(Path.sep + '\\.')) || file.match(/^\./)) {
if (Path.basename(file).startsWith('.')) {
return lookup;
}
const extension = file.match(/[^.]+$/).toString();
Expand Down

0 comments on commit d669c40

Please sign in to comment.