Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nine-geese-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/aws": patch
---

fix(build): Add 22.18.0 to affected nodeVersion in dereference symlink workaround"
4 changes: 3 additions & 1 deletion packages/open-next/src/build/installDeps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type { InstallOptions } from "types/open-next";

import logger from "../logger.js";

const AFFECTED_NODE_VERSIONS = ["v22.17.0", "v22.17.1", "v22.18.0"];

export function installDependencies(
outputDir: string,
installOptions?: InstallOptions,
Expand Down Expand Up @@ -54,7 +56,7 @@ export function installDependencies(
// This is a workaround for Node `22.17.0` and `22.17.1`
// https://github.com/nodejs/node/issues/59168
const nodeVersion = process.version;
if (nodeVersion === "v22.17.0" || nodeVersion === "v22.17.1") {
if (AFFECTED_NODE_VERSIONS.includes(nodeVersion)) {
const tempBinDir = path.join(tempInstallDir, "node_modules", ".bin");
const outputBinDir = path.join(outputDir, "node_modules", ".bin");

Expand Down
Loading