This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slawek/sk-tools",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slawek/sk-tools",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ export {
|
||||
readCsvFromStdin,
|
||||
renderOutput,
|
||||
} from "./cli/utils.ts";
|
||||
export { getConfig } from "./config/index.ts";
|
||||
export { getConfigDir, getConfig } from "./config/index.ts";
|
||||
|
||||
Reference in New Issue
Block a user