diff --git a/package-lock.json b/package-lock.json index 57c5d6c..d220509 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@slawek/sk-tools", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 76038b2..d904b2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@slawek/sk-tools", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "files": [ "dist", diff --git a/src/config/index.ts b/src/config/index.ts index d2a3478..7dbce36 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -4,7 +4,7 @@ import { readFile } from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -function getConfigDir(moduleName: string): string { +export function getConfigDir(moduleName: string): string { if (process.platform === "win32") { return path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), moduleName); } diff --git a/src/index.ts b/src/index.ts index 343a5f9..744353d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,4 +9,4 @@ export { readCsvFromStdin, renderOutput, } from "./cli/utils.ts"; -export { getConfig } from "./config/index.ts"; +export { getConfigDir, getConfig } from "./config/index.ts";