From 812f1867a4d294c5653e4133037c8b260072acdb Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 15 Oct 2023 04:04:56 +0800 Subject: [PATCH] chore: require nodejs 16. --- core/package.json | 3 +++ core/tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/package.json b/core/package.json index 78245d98..61f6b381 100644 --- a/core/package.json +++ b/core/package.json @@ -37,6 +37,9 @@ "lib", "src" ], + "engines": { + "node": ">=16.0.0" + }, "peerDependencies": { "react-scripts": ">=2.1.3" }, diff --git a/core/tsconfig.json b/core/tsconfig.json index 07b6a445..643b654b 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "Node16", - "target": "ES5", + "target": "ES2022", "strict": true, "declaration": true, "esModuleInterop": true,