cli now uses adapter logic, require node v22

This commit is contained in:
dswbx
2025-06-13 15:58:06 +02:00
parent 85d8542a2e
commit 03c4c41d2d
8 changed files with 173 additions and 852 deletions

View File

@@ -4,14 +4,6 @@ import { readFile, writeFile as nodeWriteFile } from "node:fs/promises";
import path from "node:path";
import url from "node:url";
export function isBun(): boolean {
try {
return typeof Bun !== "undefined";
} catch (e) {
return false;
}
}
export function getRootPath() {
const _path = path.dirname(url.fileURLToPath(import.meta.url));
// because of "src", local needs one more level up