Skip to content

Commit

Permalink
Require Node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 2, 2021
1 parent 851bc07 commit cde5c79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 6 additions & 3 deletions index.d.ts
Expand Up @@ -46,7 +46,10 @@ declare namespace open {
| 'chrome'
| 'firefox';

type App = {name: string | readonly string[]; arguments?: readonly string[]};
type App = {
name: string | readonly string[];
arguments?: readonly string[];
};
}

declare const open: {
Expand All @@ -64,12 +67,12 @@ declare const open: {
});
```
*/
apps: Record<open.AppName, string | string[]>;
apps: Record<open.AppName, string | readonly string[]>;

/**
Open stuff like URLs, files, executables. Cross-platform.
Uses the command `open` on OS X, `start` on Windows and `xdg-open` on other platforms.
Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
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`.
Expand Down
12 changes: 1 addition & 11 deletions package.json
Expand Up @@ -11,7 +11,7 @@
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=10.17"
"node": ">=12"
},
"scripts": {
"test": "xo && tsd"
Expand Down Expand Up @@ -57,15 +57,5 @@
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
},
"xo": {
"rules": {
"node/no-unsupported-features/node-builtins": [
"error",
{
"ignores": ["fs.promises"]
}
]
}
}
}

0 comments on commit cde5c79

Please sign in to comment.