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 6, 2023
1 parent 6ab87b1 commit b8b08fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"capture-website": "./cli.js"
},
"engines": {
"node": ">=14.16"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -41,16 +41,16 @@
"jpg"
],
"dependencies": {
"capture-website": "^3.2.0",
"capture-website": "^4.0.0",
"get-stdin": "^9.0.0",
"meow": "^11.0.0",
"meow": "^12.1.1",
"split-on-first": "^3.0.0"
},
"devDependencies": {
"ava": "^5.2.0",
"ava": "^5.3.1",
"create-test-server": "^3.0.1",
"execa": "^7.1.1",
"file-type": "^18.2.1",
"xo": "^0.54.1"
"execa": "^8.0.1",
"file-type": "^18.6.0",
"xo": "^0.56.0"
}
}
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ test('check flags', async t => {
`;

flags = flags.trim()
.replace(/(?<==)"|(?<!\\)"$/gm, '')
.replace(/\\"/g, '"')
.replaceAll(/(?<==)"|(?<!\\)"$/gm, '')
.replaceAll('\\"', '"')
.split('\n');

const {stdout} = await execa('./cli.js', ['noop-file', '--internal-print-flags', ...flags]);
Expand Down

0 comments on commit b8b08fe

Please sign in to comment.