Skip to content

Commit

Permalink
fix(deps): update dependency isexe to v3 (#6622)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency isexe to v3

* chore: fix import path for isexe upgrade

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Bocian <mateusz.bocian@netlify.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 21, 2024
1 parent f1ec038 commit 3a10643
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
41 changes: 34 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"is-docker": "3.0.0",
"is-stream": "4.0.1",
"is-wsl": "2.2.0",
"isexe": "2.0.0",
"isexe": "3.1.1",
"js-yaml": "4.1.0",
"jsonwebtoken": "9.0.2",
"jwt-decode": "4.0.0",
Expand Down
5 changes: 2 additions & 3 deletions src/lib/exec-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import path from 'path'
import process from 'process'

import { fetchLatest, fetchVersion, newerVersion, updateAvailable } from 'gh-release-fetch'
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'isex... Remove this comment to see the full error message
import isExe from 'isexe'
import { isexe } from 'isexe'

import { NETLIFYDEVWARN, error, getTerminalLink, log } from '../utils/command-helpers.js'
import execa from '../utils/execa.js'
Expand Down Expand Up @@ -52,7 +51,7 @@ export const shouldFetchLatestVersion = async ({
}) => {
const execPath = path.join(binPath, getExecName({ execName }))

const exists = await isExe(execPath, { ignoreErrors: true })
const exists = await isexe(execPath, { ignoreErrors: true })
if (!exists) {
return true
}
Expand Down

2 comments on commit 3a10643

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,370
  • Package size: 312 MB
  • Number of ts-expect-error directives: 997

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,370
  • Package size: 312 MB
  • Number of ts-expect-error directives: 997

Please # to comment.