Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit c5da349

Browse files
jiashengguoCopilot
andauthored
feat(cli): add dotenv support (#629)
* feat(cli): add dotenv support * [WIP] Update dotenv support implementation in CLI based on review (#631) * Initial plan * fix(cli): move dotenv import to top of file Co-authored-by: jiashengguo <16688722+jiashengguo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jiashengguo <16688722+jiashengguo@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent ab9535e commit c5da349

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

packages/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,19 @@
4646
"colors": "1.4.0",
4747
"commander": "^8.3.0",
4848
"cors": "^2.8.5",
49+
"dotenv": "^17.2.3",
4950
"execa": "^9.6.0",
5051
"express": "^5.0.0",
5152
"jiti": "^2.6.1",
5253
"langium": "catalog:",
5354
"mixpanel": "^0.18.1",
55+
"mysql2": "catalog:",
5456
"ora": "^5.4.1",
5557
"package-manager-detector": "^1.3.0",
5658
"pg": "catalog:",
5759
"prisma": "catalog:",
5860
"semver": "^7.7.2",
59-
"ts-pattern": "catalog:",
60-
"mysql2": "catalog:"
61+
"ts-pattern": "catalog:"
6162
},
6263
"devDependencies": {
6364
"@types/better-sqlite3": "catalog:",

packages/cli/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'dotenv/config';
12
import { ZModelLanguageMetaData } from '@zenstackhq/language';
23
import colors from 'colors';
34
import { Command, CommanderError, Option } from 'commander';

pnpm-lock.yaml

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)