added more cli instructions

This commit is contained in:
dswbx
2025-03-28 20:52:00 +01:00
parent 11a28eba88
commit b29c04e8c9
2 changed files with 74 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ export async function getConfigPath(filePath?: string) {
const exts = ["", ".js", ".ts", ".mjs", ".cjs", ".json"];
const paths = exts.map((e) => `bknd.config${e}`);
for (const p of paths) {
const _p = path.relative(process.cwd(), p);
const _p = path.resolve(process.cwd(), p);
if (await fileExists(_p)) {
return _p;
}