Skip to content

Commit

Permalink
Require Node.js 16 and TypeScript 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 16, 2023
1 parent d743202 commit ca94c3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion source/package-json.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit ca94c3b

Please sign in to comment.