Skip to content

Commit e6e876c

Browse files
Add force flag to always process the enums
1 parent 0fc3609 commit e6e876c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/EnumConvertorCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class EnumConvertorCommand extends Command
1111
{
12-
public $signature = 'convert-enums {--js}';
12+
public $signature = 'convert-enums {--js} {--force : Force processing of enums}';
1313

1414
public $description = 'Convert PHP enums to JS/TS enums';
1515

@@ -20,7 +20,7 @@ public function handle(): int
2020
$files = File::allFiles(base_path($path));
2121

2222
collect($files)->each(function ($file) use ($outputPath) {
23-
if (! $this->hasFileChanged($file)) {
23+
if (! $this->option('force') && ! $this->hasFileChanged($file)) {
2424
return;
2525
}
2626

0 commit comments

Comments
 (0)