Skip to content

Commit f35b5c2

Browse files
committed
fix: tweak finder rules
1 parent 1914649 commit f35b5c2

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/Build/CompressBuildFilesStep.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ private function getPhpFiles(): Finder
9191
return Finder::create()
9292
->in($this->buildDirectory)
9393
->files()
94-
->name(['*.php'])
95-
->ignoreVCS(true);
94+
->name(['*.php']);
9695
}
9796

9897
/**
@@ -109,8 +108,6 @@ private function getWordPressCoreFiles(string $projectType): Finder
109108

110109
return sprintf('/^%s/', $path);
111110
})->add('/^bin\//')->all())
112-
->files()
113-
->ignoreVCS(true)
114-
->ignoreDotFiles(false);
111+
->files();
115112
}
116113
}

src/Build/CopyWordPressFilesStep.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ private function getProjectFiles(string $projectType): Finder
125125
{
126126
$finder = Finder::create()
127127
->in($this->projectDirectory)
128-
->exclude(['.idea', '.ymir'])
129128
->notName(['ymir.yml'])
130-
->followLinks()
131-
->ignoreVcs(true)
132-
->ignoreDotFiles(false);
129+
->followLinks();
133130

134131
if (is_readable($this->projectDirectory.'/.gitignore')) {
135132
$finder->ignoreVCSIgnored(true);

src/Build/ExtractAssetFilesStep.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ private function getAssetFiles(string $fromDirectory): Finder
9191
->files()
9292
->notName(['*.php'])
9393
->followLinks()
94-
->ignoreVcs(true)
9594
->ignoreDotFiles(true);
9695
}
9796

0 commit comments

Comments
 (0)