From 901492f5e2cc6cb37ea5c0ec11160a7d8e816029 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Fri, 13 Dec 2024 14:14:38 +0100 Subject: [PATCH] Updates --- package-shared/functions/backend/auth/write-auth-files.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package-shared/functions/backend/auth/write-auth-files.js b/package-shared/functions/backend/auth/write-auth-files.js index 6855bfc..7edca89 100644 --- a/package-shared/functions/backend/auth/write-auth-files.js +++ b/package-shared/functions/backend/auth/write-auth-files.js @@ -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 }; diff --git a/package.json b/package.json index 24f4860..db27d51 100644 --- a/package.json +++ b/package.json @@ -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": {