From 2c93aa5ca2192a1b35e1295fc812d5cdb4c13f0c Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Sat, 22 Apr 2023 05:54:00 -0700 Subject: [PATCH] Disallow Node.js v20 for now Revert once https://github.com/TypeStrong/ts-node/issues/1997 is resolved. --- README.md | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 25a8e52d7..0e26983c9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This project is under the Apache License 2.0 license. See the LICENSE file for m ## Setup -This project requires Node.js 18 or greater. +This project requires Node.js 18 or 19. Node.js 20 is currently unsupported due to a [breaking change that impacts `ts-node`](https://github.com/TypeStrong/ts-node/issues/1997). ```sh npm install diff --git a/package-lock.json b/package-lock.json index 91c66d434..21571df59 100644 --- a/package-lock.json +++ b/package-lock.json @@ -88,7 +88,7 @@ "yaml": "2.2.1" }, "engines": { - "node": ">=18" + "node": ">=18 <20" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 681d05c7d..d0b5c8585 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/GooborgStudios/mdn-bcd-collector.git" }, "engines": { - "node": ">=18" + "node": ">=18 <20" }, "scripts": { "prepare": "ts-node prepare.ts",