Skip to content

Commit be72e2a

Browse files
Fixed resolving SWC version for alpine linux (#30)
1 parent 5fe69bd commit be72e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/TypeScriptBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private function getBuildBinary(): TypeScriptBinary
7474

7575
return $this->buildBinary = $this->buildBinaryPath ?
7676
$typescriptBinaryFactory->getBinaryFromPath($this->buildBinaryPath) :
77-
$typescriptBinaryFactory->getBinaryFromServerSpecs(\PHP_OS, php_uname('m'), php_uname('r'));
77+
$typescriptBinaryFactory->getBinaryFromServerSpecs(\PHP_OS, php_uname('m'), file_exists('/etc/alpine-release') ? 'musl' : 'gnu');
7878
}
7979

8080
private function getWatchexecBinary(): WatcherBinary

0 commit comments

Comments
 (0)