dotenv-org / dotenv-vault-core

DEPRECATED: Use motdotla/dotenv which added support for .env.vault May 30, 2023.
https://github.com/motdotla/dotenv
9 stars 4 forks source link

Hot to implement with Playwright #10

Closed eatonjl closed 10 months ago

eatonjl commented 1 year ago

I am using dotenv in Playwright and they have me put

import dotenv from 'dotenv';
dotenv.config();

in the config file. I try to do something similar with dotenv-vault-core but I can't get it to work. What is the proper syntax for using dotenv-vault-core with Typescript "import"?

eatonjl commented 1 year ago

I finally got it to work by manually adding a copy of DotEnv's Vault "main.d.ts" file in the lib folder for this node module. Any way that can be added by default so anyone who adds this doesn't need to manually add it (basically, give it the same functionality as DotEnv Vault)?

eatonjl commented 10 months ago

@motdotla Any reason why this was closed without an answer?

motdotla commented 10 months ago

@eatonjl sorry about that.

Closed because this repo is deprecated. All the core logic is now first-class in dotenv - https://github.com/motdotla/dotenv

eatonjl commented 10 months ago

@motdotla Thank you for the clarification!