Skip to content

Commit 549d6a7

Browse files
authored
fix: Ensure os is prefixed in install deps (#999)
1 parent e2cc022 commit 549d6a7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/orange-pots-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
fix: Ensure os is prefixed in install deps

packages/open-next/src/build/installDeps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function installDependencies(
3434
const libcOption = installOptions.libc
3535
? `--libc=${installOptions.libc}`
3636
: "";
37-
const osOption = installOptions.os ? `--os=${installOptions.os}` : "linux";
37+
const osOption = `--os=${installOptions.os ?? "linux"}`;
3838

3939
const additionalArgs = installOptions.additionalArgs ?? "";
4040
const installCommand = `npm install ${osOption} ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;

0 commit comments

Comments
 (0)