Skip to content

Commit

Permalink
Require Node.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 16, 2022
1 parent 2874930 commit 7502e95
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 18
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"exports": "./distribution/index.js",
"types": "./distribution/index.d.ts",
"engines": {
"node": ">=12.20"
"node": ">=14.16"
},
"scripts": {
"build": "del-cli distribution && tsc",
Expand All @@ -39,32 +39,30 @@
"helpers"
],
"dependencies": {
"type-fest": "^2.11.1"
"type-fest": "^2.18.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^2.0.0",
"ava": "^3.15.0",
"del-cli": "^4.0.1",
"@sindresorhus/tsconfig": "^3.0.1",
"ava": "^4.3.1",
"del-cli": "^5.0.0",
"expect-type": "^0.13.0",
"ts-node": "^10.4.0",
"typescript": "^4.5.5",
"xo": "^0.47.0"
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"xo": "^0.51.0"
},
"sideEffects": false,
"ava": {
"extensions": {
"ts": "module"
},
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"nodeArguments": [
"--loader=ts-node/esm"
]
},
"xo": {
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/naming-convention": "off"
}
}
}
1 change: 1 addition & 0 deletions test/is-present.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test('isPresent()', t => {
const fixture = [1, null].filter(x => isPresent(x));
expectTypeOf(fixture).not.toBeNullable();

// eslint-disable-next-line @typescript-eslint/ban-types
const nullable: null | undefined = null;

if (isPresent(nullable)) {
Expand Down

0 comments on commit 7502e95

Please sign in to comment.