From ca94c3b30e0678877fec5c8fed8fa14d54697536 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 16 Jul 2023 11:52:21 +0200 Subject: [PATCH] Require Node.js 16 and TypeScript 5.1 --- package.json | 4 ++-- readme.md | 2 +- source/package-json.d.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 35800bd31..d3b53d62a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "types": "./index.d.ts", "engines": { - "node": ">=14.16" + "node": ">=16" }, "scripts": { "test": "xo && tsd && tsc && node script/test/source-files-extension.js" @@ -38,7 +38,7 @@ "expect-type": "^0.15.0", "tsd": "^0.28.1", "typescript": "^5.0.4", - "xo": "^0.54.2" + "xo": "^0.55.0" }, "xo": { "rules": { diff --git a/readme.md b/readme.md index ea4949fd9..33ad622e2 100644 --- a/readme.md +++ b/readme.md @@ -64,7 +64,7 @@ PR welcome for additional commonly needed types and docs improvements. Read the npm install type-fest ``` -*Requires TypeScript >=4.7* +*Requires TypeScript >=5.1* ## Usage diff --git a/source/package-json.d.ts b/source/package-json.d.ts index 7d2b8097c..9c310f1f2 100644 --- a/source/package-json.d.ts +++ b/source/package-json.d.ts @@ -505,7 +505,7 @@ declare namespace PackageJson { Engines that this package runs on. */ engines?: { - [EngineName in 'npm' | 'node' | string]?: string; // eslint-disable-line @typescript-eslint/no-redundant-type-constituents + [EngineName in 'npm' | 'node' | string]?: string; }; /**