Skip to content

Commit 25e31c8

Browse files
committed
[Toolkit] Fix comptability with Windows
1 parent 59cb869 commit 25e31c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Toolkit/src/Kit/KitSynchronizer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function synchronize(Kit $kit): void
6060
private function synchronizeComponents(Kit $kit): void
6161
{
6262
$componentsPath = Path::join('templates', 'components');
63+
dump(componentsPath: $componentsPath);
6364
$finder = (new Finder())
6465
->in($kit->path)
6566
->files()
@@ -70,8 +71,10 @@ private function synchronizeComponents(Kit $kit): void
7071

7172
foreach ($finder as $file) {
7273
$relativePathNameToKit = $file->getRelativePathname();
74+
dump(relativePathNameToKit: $relativePathNameToKit);
7375
$relativePathName = str_replace($componentsPath.\DIRECTORY_SEPARATOR, '', $relativePathNameToKit);
74-
$componentName = $this->extractComponentName($relativePathName);
76+
dump(relativePathName: $relativePathName);
77+
$componentName = $this->extractComponentName(Path::normalize($relativePathName));
7578

7679
$meta = null;
7780
if ($this->filesystem->exists($metaJsonFile = Path::join($file->getPath(), str_replace('.html.twig', '.meta.json', $file->getBasename())))) {

0 commit comments

Comments
 (0)