We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
array.at()
1 parent 0c271c0 commit 562ed24Copy full SHA for 562ed24
package.json
@@ -41,7 +41,7 @@
41
},
42
"devDependencies": {
43
"@tommy-mitchell/tsconfig": "^0.1.0",
44
- "@types/node": "^18.15.5",
+ "@types/node": "^14.8",
45
"ava": "^5.2.0",
46
"c8": "^7.13.0",
47
"listr-cli": "^0.2.0",
src/cli.ts
@@ -37,7 +37,7 @@ const tryGetBinPath = async (binaryName?: string): ReturnType<typeof getBinPath>
37
};
38
39
// First argument could be a named binary to use
40
-const maybeBinaryName = args.at(0);
+const maybeBinaryName = args[0] ?? undefined;
const binPath = await tryGetBinPath(maybeBinaryName);
if(!binPath) {
0 commit comments