Skip to content

Commit

Permalink
Update dependencies (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jul 14, 2024
1 parent 1c76dba commit 5e73d26
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -24,9 +24,9 @@ export interface Options {
```
*/
readonly wait?: boolean;
}
};

export interface EditorInfo {
export type EditorInfo = {
/**
THe editor binary name.
*/
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 5e73d26

Please sign in to comment.