Skip to content

Commit

Permalink
Update file name to include on Finder
Browse files Browse the repository at this point in the history
  • Loading branch information
tfirdaus committed Jul 25, 2024
1 parent 32566a9 commit 7a879de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(SplFileInfo $composerJsonInfo)
$finder = Finder::create()
->files()
->in($rootDir)
->name('/(.*\.(php|json|js|pot)|readme\.txt|phpcs\.xml(\.dist)?)$/')
->name('/(.*\.(php|json|js|jsx|ts|tsx|pot)|readme\.txt|phpcs\.xml(\.dist)?)$/')
->notPath('/vendor|node_modules|(?<!xml\.)dist(.*)?|.*\.config.js|.*\-lock\.json/');
$this->rootDir = $rootDir;
$this->finder = $finder;
Expand Down

0 comments on commit 7a879de

Please sign in to comment.