Skip to content

Standardize config path to ~/.config/nemar/ on all platforms #269

Closed

Description

@neuromechanist

Problem

The conf package uses OS-native preference paths:

  • macOS: ~/Library/Preferences/nemar-nodejs/config.json
  • Linux: ~/.config/nemar-nodejs/config.json
  • Windows: %APPDATA%/nemar-nodejs/config.json

This is inconsistent and hard to find. The config should live at ~/.config/nemar/config.json on all platforms for predictability.

Current Code

const config = new Conf<StoreSchema>({
  projectName: "nemar",
  // conf auto-determines path per platform
});

Proposed Fix

Use the cwd option in conf to force the path:

import { join } from "path";
import { homedir } from "os";

const config = new Conf<StoreSchema>({
  projectName: "nemar",
  cwd: join(homedir(), ".config", "nemar"),
});

Migration

  • On first run, check if old path exists and migrate to new path
  • Print a one-time notice about the move
  • File: src/lib/config.ts

Activity

  1. added 3 commits that reference this issue on Mar 9, 2026
    bd38123
    da91300
    c00de0f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions