We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc7255 commit b77831cCopy full SHA for b77831c
lib/yargs-factory.ts
@@ -1552,7 +1552,9 @@ export class YargsInstance {
1552
// ignore the node bin, specify this in your
1553
// bin file with #!/usr/bin/env node
1554
let default$0: string[];
1555
- if (/\b(node|iojs|electron)(\.exe)?$/.test(this.#shim.process.argv()[0])) {
+ if (
1556
+ /\b(node|iojs|electron|bun)(\.exe)?$/.test(this.#shim.process.argv()[0])
1557
+ ) {
1558
default$0 = this.#shim.process.argv().slice(1, 2);
1559
} else {
1560
default$0 = this.#shim.process.argv().slice(0, 1);
0 commit comments