From d5c116b0bffb14cc28928c32362946e9aef807b1 Mon Sep 17 00:00:00 2001 From: Dan Haughey Date: Thu, 6 Mar 2025 14:54:00 +0000 Subject: [PATCH] Fix faulty Node engine version in package.json (#248) --- .projenrc.ts | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index d13ccdd..fba37a0 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -18,6 +18,8 @@ const commonTscOptions: TypeScriptCompilerOptions = { // esModuleInterop: true, // why doesn't this work? }; +const minNodeVersion = '18.18.0'; + const project = new awscdk.AwsCdkConstructLibrary({ // repository config author: 'JetBridge', @@ -35,7 +37,8 @@ const project = new awscdk.AwsCdkConstructLibrary({ packageName: 'cdk-nextjs-standalone', majorVersion: 4, // prerelease: 'beta', - minNodeVersion: '>=18.18.0', + minNodeVersion, + workflowNodeVersion: `>=${minNodeVersion}`, description: 'Deploy a NextJS app to AWS using CDK and OpenNext.', keywords: [ 'nextjs', diff --git a/package.json b/package.json index 822fa53..751efad 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "standalone" ], "engines": { - "node": ">= >=18.18.0" + "node": ">= 18.18.0" }, "main": "lib/index.js", "license": "Apache-2.0",