Skip to content

Add a NODE_ENV argument #5

@miyaji255

Description

@miyaji255

I would like to set NODE_ENV like the following, because I cannot use NODE_ENV=development on Windows.

$ dotenv-flow -e development -- prisma migrate dev

I think the following implementation

  const path = argv.p;
- dotenvExpand.expand(dotenv.config({ path }));
+ const node_env = argv.e;
+ dotenvExpand.expand(dotenv.config({ path, node_env }));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions