Skip to content

Commit e897c65

Browse files
authored
Update BuildCommand.php
1 parent 4e55999 commit e897c65

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Commands/BuildCommand.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,11 @@ public function handle(): void
3333
);
3434
}
3535

36-
$buildCommand = 'npm run build';
37-
if ($os) {
38-
$buildCommand .= ':'.$os;
39-
}
40-
4136
Process::path(__DIR__.'/../../resources/js/')
4237
->env($this->getEnvironmentVariables())
4338
->forever()
4439
->tty(PHP_OS_FAMILY != 'Windows' && ! $this->option('no-interaction'))
45-
->run($buildCommand, function (string $type, string $output) {
40+
->run("npm run build:{$os}", function (string $type, string $output) {
4641
echo $output;
4742
});
4843
}

0 commit comments

Comments
 (0)