forked from svrjs/svrjs
feat: add support for Deno 2 for additional SVR.JS utilities
This commit is contained in:
parent
38cf8bb68d
commit
ad23033b15
3 changed files with 9 additions and 3 deletions
|
@ -5,7 +5,9 @@ const readline = require("readline");
|
||||||
const args = process.argv;
|
const args = process.argv;
|
||||||
for (
|
for (
|
||||||
let i =
|
let i =
|
||||||
process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1
|
process.argv[0].indexOf("node") > -1 ||
|
||||||
|
process.argv[0].indexOf("bun") > -1 ||
|
||||||
|
process.argv[0].indexOf("deno") > -1
|
||||||
? 2
|
? 2
|
||||||
: 1;
|
: 1;
|
||||||
i < args.length;
|
i < args.length;
|
||||||
|
|
|
@ -6,7 +6,9 @@ const readline = require("readline");
|
||||||
const args = process.argv;
|
const args = process.argv;
|
||||||
for (
|
for (
|
||||||
let i =
|
let i =
|
||||||
process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1
|
process.argv[0].indexOf("node") > -1 ||
|
||||||
|
process.argv[0].indexOf("bun") > -1 ||
|
||||||
|
process.argv[0].indexOf("deno") > -1
|
||||||
? 2
|
? 2
|
||||||
: 1;
|
: 1;
|
||||||
i < args.length;
|
i < args.length;
|
||||||
|
|
|
@ -299,7 +299,9 @@ if (
|
||||||
args.push("-h");
|
args.push("-h");
|
||||||
for (
|
for (
|
||||||
let i =
|
let i =
|
||||||
process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1
|
process.argv[0].indexOf("node") > -1 ||
|
||||||
|
process.argv[0].indexOf("bun") > -1 ||
|
||||||
|
process.argv[0].indexOf("deno") > -1
|
||||||
? 2
|
? 2
|
||||||
: 1;
|
: 1;
|
||||||
i < args.length;
|
i < args.length;
|
||||||
|
|
Reference in a new issue