Skip to content

Remove dotenv from cli-kit/app#7728

Draft
amcaplan wants to merge 1 commit into
mainfrom
remove-dep/dotenv
Draft

Remove dotenv from cli-kit/app#7728
amcaplan wants to merge 1 commit into
mainfrom
remove-dep/dotenv

Conversation

@amcaplan
Copy link
Copy Markdown
Contributor

@amcaplan amcaplan commented Jun 5, 2026

Remove dotenv from @shopify/cli-kit

Why: Part of an initiative to cut low-value dependency churn (10 Dependabot bumps / 24 months).

Replacement: Node's built-in util.parseEnv() (engines.node ≥ 22.12 in cli-kit).

  • Sole site: packages/cli-kit/src/public/node/dot-env.tsdotenv.parse()util.parseEnv().
  • ⚠️ Type-gap workaround: @types/node is pinned to 18.19.70 here, which predates util.parseEnv. A naked import would fail TS2305. Resolved with a small local typed cast wrapper (NOT a @types/node bump, to avoid a broad type surface change).

Validation: type-check ✅, lint ✅, vitest ✅ (17/17 tests).

Follow-up: The dotenv usage in the e2e package was intentionally left out of this PR as a separate, low-priority follow-up.

🤖 AI-generated draft — needs human review before merge.

Co-Authored-By: Claude <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant