From 7a879deb408b397b69d36ffe99b85260d236ca46 Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:31:12 +0700 Subject: [PATCH] Update file name to include on `Finder` --- app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php b/app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php index 9a2932d..f89f6fb 100644 --- a/app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php +++ b/app/Actions/Initializers/WPStarterPlugin/ProjectFiles.php @@ -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|(?rootDir = $rootDir; $this->finder = $finder;