Skip to content

Comments

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
lucasmotta added a commit that referenced this pull request Feb 20, 2026
…ts-skills

* origin/main: (21 commits)
  chore(main): release 0.7.2 (#67)
  fix: Correct issue submission links (#66)
  chore(main): release 0.7.1 (#65)
  fix: ground AI analysis in SDK documentation (#64)
  chore(main): release 0.7.0 (#60)
  fix: improve installer skill and remove shell: true from spawn calls (#63)
  feat: major workos doctor overhaul — visual refresh, multi-language, AI analysis (#62)
  fix: replace dotenv devDependency with inline env parser in doctor (#61)
  feat: add environment, organization, and user management commands (#59)
  chore(main): release 0.6.0 (#58)
  feat: agent self-correction via validation feedback loop (#57)
  chore(main): release 0.5.4 (#56)
  fix: restore workflow_call and remove registry-url for OIDC
  chore(main): release 0.5.3 (#55)
  fix: trigger release.yml directly via release event for OIDC match
  fix: remove registry-url from setup-node to unblock OIDC auth
  chore(main): release 0.5.2 (#54)
  fix: use npm publish for OIDC trusted publishing support
  chore(main): release 0.5.1 (#53)
  fix: remove duplicate release trigger causing publish race condition
  ...

# Conflicts:
#	src/lib/adapters/cli-adapter.ts
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