Skip to content

fix: Windows compatibility improvements (cross-platform scripts & paths) - #107

Open
steven4343 wants to merge 1 commit into
CypherCommons:mainfrom
steven4343:fix/windows-compatibility
Open

fix: Windows compatibility improvements (cross-platform scripts & paths)#107
steven4343 wants to merge 1 commit into
CypherCommons:mainfrom
steven4343:fix/windows-compatibility

Conversation

@steven4343

Copy link
Copy Markdown

Problem

Windows developers could not run the project out of the box:

  • NODE_ENV=... syntax in npm scripts fails on Windows
  • lint-staged used bash -c which requires git-bash
  • Config paths used Unix-specific conventions (/tmp/, ~/)
  • File paths used hardcoded / separators

Changes

  • Added cross-env devDependency for cross-platform env variables
  • Updated start:dev, start:debug, start:e2e, test:e2e to use cross-env NODE_ENV=...
  • Removed bash -c wrapper from lint-staged config
  • Changed e2e config DB path from /tmp/... to ./tmp/...
  • Changed example config DB path from ~/... to ./data/...
  • Replaced hardcoded / separators with path.join() in file-logger.ts

Testing

  • npm install completes without native build errors on Windows
  • All scripts work consistently on Windows, Linux, and macOS

@steven4343
steven4343 force-pushed the fix/windows-compatibility branch from 9d00d31 to b30228d Compare June 21, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant