voidzero-dev / voidzero-dev/vite-task

allow auto loading .env file for vite tasks

Open
#435 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
466
Forks
42
Avg merge
1d 15h
Merged PRs (30d)
19

Description

currently I have to use external tool dotenv-run to make .env environment variables available to the scripts.
It would be nice if vite task runner allow to configure auto loading specific .env file.

packages/db/package.json

    "migrate": "dotenv-run -f ../../.env -v -- drizzle-kit migrate",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/db/package.json and the migrate script to understand how the task runner currently invokes dotenv-run. Trace the task runner's environment-loading or task-configuration entry points, then verify that a configured .env file makes its variables available to the migration command without the external tool.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.