Skip to content

Commit cde5c79

Browse files
committed
Require Node.js 12
1 parent 851bc07 commit cde5c79

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

index.d.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ declare namespace open {
4646
| 'chrome'
4747
| 'firefox';
4848

49-
type App = {name: string | readonly string[]; arguments?: readonly string[]};
49+
type App = {
50+
name: string | readonly string[];
51+
arguments?: readonly string[];
52+
};
5053
}
5154

5255
declare const open: {
@@ -64,12 +67,12 @@ declare const open: {
6467
});
6568
```
6669
*/
67-
apps: Record<open.AppName, string | string[]>;
70+
apps: Record<open.AppName, string | readonly string[]>;
6871

6972
/**
7073
Open stuff like URLs, files, executables. Cross-platform.
7174
72-
Uses the command `open` on OS X, `start` on Windows and `xdg-open` on other platforms.
75+
Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
7376
7477
There is a caveat for [double-quotes on Windows](https://github.com/sindresorhus/open#double-quotes-on-windows) where all double-quotes are stripped from the `target`.
7578

package.json

+1-11
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"engines": {
14-
"node": ">=10.17"
14+
"node": ">=12"
1515
},
1616
"scripts": {
1717
"test": "xo && tsd"
@@ -57,15 +57,5 @@
5757
"ava": "^3.15.0",
5858
"tsd": "^0.14.0",
5959
"xo": "^0.37.1"
60-
},
61-
"xo": {
62-
"rules": {
63-
"node/no-unsupported-features/node-builtins": [
64-
"error",
65-
{
66-
"ignores": ["fs.promises"]
67-
}
68-
]
69-
}
7060
}
7161
}

0 commit comments

Comments
 (0)