File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/open-next/src/build Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @opennextjs/aws " : patch
3
+ ---
4
+
5
+ fix(build): Add 22.18.0 to affected nodeVersion in dereference symlink workaround"
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import type { InstallOptions } from "types/open-next";
7
7
8
8
import logger from "../logger.js" ;
9
9
10
+ const AFFECTED_NODE_VERSIONS = [ "22.17.0" , "22.17.1" , "22.18.0" ] ;
11
+
10
12
export function installDependencies (
11
13
outputDir : string ,
12
14
installOptions ?: InstallOptions ,
@@ -53,8 +55,8 @@ export function installDependencies(
53
55
54
56
// This is a workaround for Node `22.17.0` and `22.17.1`
55
57
// https://github.com/nodejs/node/issues/59168
56
- const nodeVersion = process . version ;
57
- if ( nodeVersion === "v22.17.0" || nodeVersion === "v22.17.1" ) {
58
+ const nodeVersion = process . versions . node ;
59
+ if ( AFFECTED_NODE_VERSIONS . includes ( nodeVersion ) ) {
58
60
const tempBinDir = path . join ( tempInstallDir , "node_modules" , ".bin" ) ;
59
61
const outputBinDir = path . join ( outputDir , "node_modules" , ".bin" ) ;
60
62
You can’t perform that action at this time.
0 commit comments