@@ -63,15 +63,15 @@ public function process(Event $event, string $magentoRootDir): void
63
63
foreach (self ::$ modules as $ moduleName => $ copyTarget ) {
64
64
$ tinyMceModule = $ this ->getTinyMceModule ($ event , $ io , $ moduleName );
65
65
if ($ tinyMceModule ) {
66
- $ rootDir = getcwd ();
66
+ $ rootDir = getcwd ();
67
67
/** @var string $vendorDir */
68
68
$ vendorDir = $ event ->getComposer ()->getConfig ()->get ('vendor-dir ' );
69
69
70
70
$ version = $ this ->getInstalledVersion (self ::TINYMCE_MODULE );
71
71
$ mainVersion = $ version [0 ] ?? null ;
72
72
73
73
$ copySource = $ vendorDir . '/ ' . $ moduleName ;
74
- $ copyTarget = $ rootDir . '/ ' . $ copyTarget ;
74
+ $ copyTarget = $ rootDir . '/ ' . $ magentoRootDir . $ copyTarget ;
75
75
76
76
if ($ moduleName === self ::TINYMCE_MODULE ) {
77
77
switch ((int ) $ mainVersion ) {
@@ -93,7 +93,7 @@ public function process(Event $event, string $magentoRootDir): void
93
93
$ copySource = $ copySource . '/langs ' . $ mainVersion ;
94
94
}
95
95
96
- $ this ->copy ($ io , $ copySource , $ magentoRootDir . $ copyTarget );
96
+ $ this ->copy ($ io , $ copySource , $ copyTarget );
97
97
}
98
98
}
99
99
}
@@ -133,7 +133,11 @@ private function copy(IOInterface $io, string $source, string $target): void
133
133
{
134
134
$ filesystem = new Filesystem ();
135
135
$ finder = new Finder ();
136
- $ finder ->in ($ source )->name ('*.js ' );
136
+ $ finder
137
+ ->files ()
138
+ ->in ($ source )
139
+ ->name ('*.css ' )
140
+ ->name ('*.js ' );
137
141
foreach ($ finder as $ file ) {
138
142
$ copySource = $ file ->getPathname ();
139
143
$ copytarget = $ target . '/ ' . $ file ->getRelativePathname ();
0 commit comments