Skip to content

Commit

Permalink
Require Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 26, 2023
1 parent 676dcea commit 11d6689
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -10,11 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 14
- 12
- 18
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
10 changes: 5 additions & 5 deletions cli.js
Expand Up @@ -6,9 +6,9 @@ meow(`
Example
$ default-browser
Safari
`);
`, {
importMeta: import.meta,
});

(async () => {
const {name} = await defaultBrowser();
console.log(name);
})();
const {name} = await defaultBrowser();
console.log(name);
12 changes: 6 additions & 6 deletions package.json
Expand Up @@ -15,7 +15,7 @@
"default-browser": "cli.js"
},
"engines": {
"node": ">=12"
"node": ">=16"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -41,12 +41,12 @@
"applescript"
],
"dependencies": {
"default-browser": "^3.0.0",
"meow": "^9.0.0"
"default-browser": "^4.0.0",
"meow": "^11.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"execa": "^5.0.0",
"xo": "^0.38.2"
"ava": "^5.2.0",
"execa": "^7.1.1",
"xo": "^0.53.1"
}
}
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -6,8 +6,8 @@ Works on macOS and Linux.

## Install

```
$ npm install --global default-browser-cli
```sh
npm install --global default-browser-cli
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion test.js
@@ -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 11d6689

Please sign in to comment.