Skip to content

fix: replace dotenv devDependency with inline env parser in doctor#61

Merged
nicknisi merged 1 commit intomainfrom
nicknisi/doctor-fixes
Feb 18, 2026
Merged

fix: replace dotenv devDependency with inline env parser in doctor#61
nicknisi merged 1 commit intomainfrom
nicknisi/doctor-fixes

Conversation

@nicknisi
Copy link
Member

Summary

  • dotenv was listed as a devDependency but imported at runtime in the doctor's environment check, causing ERR_MODULE_NOT_FOUND when running workos doctor via npx
  • Replaced the dotenv import with a minimal inline .env parser that handles KEY=value, quoted values, comments, and export prefixes

Test plan

  • pnpm typecheck passes
  • All 415 tests pass
  • workos doctor --install-dir <project> runs without the module-not-found crash

dotenv was listed as a devDependency but imported at runtime,
causing ERR_MODULE_NOT_FOUND when running `workos doctor` via npx.
@nicknisi nicknisi force-pushed the nicknisi/doctor-fixes branch from b18d3a2 to aa4cc6a Compare February 18, 2026 00:04
@nicknisi nicknisi merged commit 4c7553f into main Feb 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments