Skip to content

Commit aba2bac

Browse files
committed
Grunt should also check .js.map files
1 parent ac54892 commit aba2bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/GruntCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function validatePluginFiles(OutputInterface $output)
132132
$code = 0;
133133

134134
// Look for modified files or files that should be deleted.
135-
$files = Finder::create()->files()->in($this->backupDir)->name('*.js')->name('*.css')->getIterator();
135+
$files = Finder::create()->files()->in($this->backupDir)->name('*.js')->name('*.js.map')->name('*.css')->getIterator();
136136
foreach ($files as $file) {
137137
$compareFile = $this->plugin->directory.'/'.$file->getRelativePathname();
138138
if (!file_exists($compareFile)) {
@@ -148,7 +148,7 @@ public function validatePluginFiles(OutputInterface $output)
148148
}
149149

150150
// Look for newly generated files.
151-
$files = Finder::create()->files()->in($this->plugin->directory)->name('*.js')->name('*.css')->getIterator();
151+
$files = Finder::create()->files()->in($this->plugin->directory)->name('*.js')->name('*.js.map')->name('*.css')->getIterator();
152152
foreach ($files as $file) {
153153
if (!file_exists($this->backupDir.'/'.$file->getRelativePathname())) {
154154
$output->writeln(sprintf('<error>File is newly generated and needs to be added: %s</error>', $file->getRelativePathname()));

0 commit comments

Comments
 (0)