Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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"
6 changes: 4 additions & 2 deletions 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 = ["22.17.0", "22.17.1", "22.18.0"];

export function installDependencies(
outputDir: string,
installOptions?: InstallOptions,
Expand Down Expand Up @@ -53,8 +55,8 @@ 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") {
const nodeVersion = process.versions.node;
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