Skip to content

Commit

Permalink
Require Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 4, 2023
1 parent a0e8c75 commit 453451b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 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:
- 16
- 20
- 18
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import meow from 'meow';
import terminalSize from 'term-size';
import terminalSize from 'terminal-size';

meow(`
Example
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"term-size": "./cli.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -39,12 +39,12 @@
"redirected"
],
"dependencies": {
"meow": "^10.1.1",
"term-size": "^3.0.0"
"meow": "^12.1.1",
"terminal-size": "^4.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"execa": "^5.1.1",
"xo": "^0.44.0"
"ava": "^5.3.1",
"execa": "^8.0.1",
"xo": "^0.56.0"
}
}
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
## Install

```
$ npm install --global term-size-cli
```sh
npm install --global term-size-cli
```

## Usage
Expand All @@ -24,4 +24,4 @@ $ term-size --help

## Related

- [term-size](https://github.com/sindresorhus/term-size) - API for this module
- [terminal-size](https://github.com/sindresorhus/terminal-size) - API for this module
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import execa from 'execa';
import {execa} from 'execa';

test('main', async t => {
const {stdout} = await execa('./cli.js');
Expand Down

0 comments on commit 453451b

Please sign in to comment.