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": {