Skip to content

fix(db): ensure migrate and seed scripts work on Windows (#7)#11

Open
qwan30 wants to merge 1 commit into
Zleap-AI:mainfrom
qwan30:fix-issue-7
Open

fix(db): ensure migrate and seed scripts work on Windows (#7)#11
qwan30 wants to merge 1 commit into
Zleap-AI:mainfrom
qwan30:fix-issue-7

Conversation

@qwan30

@qwan30 qwan30 commented Jul 8, 2026

Copy link
Copy Markdown

This PR fixes issue #7.%0A%0AChanges:%0A- Created \src/utils/is-main.ts\ with a robust cross-platform path resolution helper.%0A- Replaced inline checks in \seed.ts, \migrate.ts, and \server.ts\ with the new helper.%0A- Handles path casing on Windows and extension stripping via \path.extname().%0A- Added TDD tests in \ est/is-main.test.ts.

…%0A%0AIntroduced isMainModule helper to robustly handle path normalization across platforms.
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