Exporteed getConfigDir.
All checks were successful
build / build (push) Successful in 7s

This commit is contained in:
2026-03-07 15:26:38 +01:00
parent 4dac95e081
commit f5877d2ccd
4 changed files with 4 additions and 4 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "@slawek/sk-tools", "name": "@slawek/sk-tools",
"version": "0.1.3", "version": "0.1.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@slawek/sk-tools", "name": "@slawek/sk-tools",
"version": "0.1.3", "version": "0.1.4",
"type": "module", "type": "module",
"files": [ "files": [
"dist", "dist",

View File

@@ -4,7 +4,7 @@ import { readFile } from "node:fs/promises";
import os from "node:os"; import os from "node:os";
import path from "node:path"; import path from "node:path";
function getConfigDir(moduleName: string): string { export function getConfigDir(moduleName: string): string {
if (process.platform === "win32") { if (process.platform === "win32") {
return path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), moduleName); return path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), moduleName);
} }

View File

@@ -9,4 +9,4 @@ export {
readCsvFromStdin, readCsvFromStdin,
renderOutput, renderOutput,
} from "./cli/utils.ts"; } from "./cli/utils.ts";
export { getConfig } from "./config/index.ts"; export { getConfigDir, getConfig } from "./config/index.ts";