1
0
Fork 0
forked from svrjs/svrjs

feat: add support for Deno 2 for additional SVR.JS utilities

This commit is contained in:
Dorian Niemiec 2024-10-19 07:16:02 +02:00
parent 38cf8bb68d
commit ad23033b15
3 changed files with 9 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;