Skip to content

Commit

Permalink
Update dependencies and drop Node.js < 18 support (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Apr 1, 2024
1 parent 993b291 commit 40b382d
Show file tree
Hide file tree
Showing 7 changed files with 2,840 additions and 8,017 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14.14.0", 16, 18, 20]
node: [18, 20]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 2
NODE: 18 # The Node.js version to run lint on
NODE: 20 # The Node.js version to run lint on

jobs:
run:
Expand All @@ -13,12 +13,12 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE }}
cache: npm
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import execa from 'execa';
import isexe from 'isexe';
import {execa, execaSync} from 'execa';
import {isexe, sync as isexeSync} from 'isexe';

const binCheck = (bin, args) => {
if (!Array.isArray(args)) {
Expand All @@ -22,11 +22,11 @@ binCheck.sync = (bin, args) => {
args = ['--help'];
}

if (!isexe.sync(bin)) {
if (!isexeSync(bin)) {
throw new Error(`Couldn't execute the "${bin}" binary. Make sure it has the right permissions.`);
}

return execa.sync(bin, args).exitCode === 0;
return execaSync(bin, args).exitCode === 0;
};

export default binCheck;
Loading

0 comments on commit 40b382d

Please sign in to comment.