From 5e73d26955a937cc09c26d95cd7d7775b8c00c64 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sun, 14 Jul 2024 21:47:55 +0700 Subject: [PATCH] Update dependencies (#20) --- index.d.ts | 10 +++++----- index.js | 2 +- index.test-d.ts | 2 +- package.json | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/index.d.ts b/index.d.ts index c9bbdc2..42b93f5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ -import {PathLike} from 'line-column-path'; +import {type PathLike} from 'line-column-path'; -export interface Options { +export type Options = { /** The name, command, or binary path of the editor. @@ -24,9 +24,9 @@ export interface Options { ``` */ readonly wait?: boolean; -} +}; -export interface EditorInfo { +export type EditorInfo = { /** THe editor binary name. */ @@ -41,7 +41,7 @@ export interface EditorInfo { A flag indicating whether the editor runs in the terminal. */ readonly isTerminalEditor: boolean; -} +}; /** Open the given files in the user's editor at specific line and column if supported by the editor. It does not wait for the editor to start or quit unless you specify `wait: true` in the options. diff --git a/index.js b/index.js index 65b9808..fd3d034 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ import process from 'node:process'; -import execa from 'execa'; +import {execa} from 'execa'; import {getEditor, defaultEditor} from 'env-editor'; import {parseLineColumnPath, stringifyLineColumnPath} from 'line-column-path'; import open from 'open'; diff --git a/index.test-d.ts b/index.test-d.ts index 59b3819..58e1df4 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -1,5 +1,5 @@ import {expectType} from 'tsd'; -import openEditor, {getEditorInfo, EditorInfo} from './index.js'; +import openEditor, {getEditorInfo, type EditorInfo} from './index.js'; void openEditor([ 'unicorn.js:5:3', diff --git a/package.json b/package.json index f847da3..2b55b19 100644 --- a/package.json +++ b/package.json @@ -49,13 +49,13 @@ ], "dependencies": { "env-editor": "^1.1.0", - "execa": "^5.1.1", + "execa": "^9.3.0", "line-column-path": "^3.0.0", - "open": "^8.4.0" + "open": "^10.1.0" }, "devDependencies": { - "ava": "^3.15.0", - "tsd": "^0.18.0", - "xo": "^0.45.0" + "ava": "^6.1.3", + "tsd": "^0.31.1", + "xo": "^0.58.0" } }