We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc3609 commit e6e876cCopy full SHA for e6e876c
src/Commands/EnumConvertorCommand.php
@@ -9,7 +9,7 @@
9
10
class EnumConvertorCommand extends Command
11
{
12
- public $signature = 'convert-enums {--js}';
+ public $signature = 'convert-enums {--js} {--force : Force processing of enums}';
13
14
public $description = 'Convert PHP enums to JS/TS enums';
15
@@ -20,7 +20,7 @@ public function handle(): int
20
$files = File::allFiles(base_path($path));
21
22
collect($files)->each(function ($file) use ($outputPath) {
23
- if (! $this->hasFileChanged($file)) {
+ if (! $this->option('force') && ! $this->hasFileChanged($file)) {
24
return;
25
}
26
0 commit comments