This commit is contained in:
Benjamin Toby 2024-12-13 14:14:38 +01:00
parent d98deb06c5
commit 901492f5e2
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,10 @@ const fs = require("fs");
const path = require("path");
const grabAuthDirs = () => {
const ROOT_DIR = path.resolve(process.cwd(), "./.tmp");
const DSQL_AUTH_DIR = process.env.DSQL_AUTH_DIR;
const ROOT_DIR = DSQL_AUTH_DIR?.match(/./)
? DSQL_AUTH_DIR
: path.resolve(process.cwd(), "./.tmp");
const AUTH_DIR = path.join(ROOT_DIR, "logins");
return { root: ROOT_DIR, auth: AUTH_DIR };

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "3.1.1",
"version": "3.1.2",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"bin": {