If you need to know more about me:
mrsteele / dotenv-defaults Goto Github PK
View Code? Open in Web Editor NEWdotenv... but with defaults!
License: MIT License
dotenv... but with defaults!
License: MIT License
.env.defaults file exists
.env file does not exist
jest.setup.js:
require("dotenv-defaults").config();
process.env is empty in any test I write. Is this expected behaviour?
Node: v13.8.0
dotenv-defaults: 1.1.1
OS: MacOS Catalina: 10.15.2
At https://github.com/piranna/config I'm fetching config values from several places, one of them is dotenv... and the defaults are from package.json config
object :-) Do you find it interesting to use it as a default value in addition to .env.defaults
file? :-)
master
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project ✨
Your semantic-release bot 📦🚀
@mrsteele, would you consider accepting a PR adding proper TypeScript types for dotenv-defaults
?
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
I just found your module, and it is just what I needed! -- Thanks
I noticed that you are depending on an out of date version of dotenv. I checked out the repo thinking I could just do a quick version bump, but I'm not able to get tests to pass. I think my system is struggling with babel and jest.
in my setup
DOTENV_CONFIG_PATH=.env.test node run test
was loading .env.test with mainstream dotenv
with yours i expect merge of .env.defaults and .env.test
but instead .env.defaults and .env merged
most of us are using dotenv and then only we would need a dependency like this to solve the problem that your awesome package is solving.
Assuming that, we must not be using 2 versions of dotenv
, as your package is treating it as a dependency, but if we treat it as a peer dependency, the users would not have 2 copies of dotenv
in their app.
I will submit the PR this weekend. Thanks for this awesome package.
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
typescript project
import "dotenv-defaults/config"
gives
/home/user/p/xxx/yyy/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find module '/home/user/p/xxx/yyy/node_modules/dotenv-defaults/config' imported from /home/user/p/xxx/yyy/src/index.ts
at finalizeResolution (/home/user/p/xxx/yyy/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:366:11)
at moduleResolve (/home/user/p/xxx/yyy/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:801:10)
at Object.defaultResolve (/home/user/p/xxx/yyy/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:912:11)
at /home/user/p/xxx/yyy/node_modules/ts-node/src/esm.ts:218:35
at entrypointFallback (/home/user/p/xxx/yyy/node_modules/ts-node/src/esm.ts:168:34)
at /home/user/p/xxx/yyy/node_modules/ts-node/src/esm.ts:217:14
at addShortCircuitFlag (/home/user/p/xxx/yyy/node_modules/ts-node/src/esm.ts:409:21)
at resolve (/home/user/p/xxx/yyy/node_modules/ts-node/src/esm.ts:197:12)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
If anyone is looking for something to do, a PR here would be nice.
Greenkeeper looks like its gone. Would appreciate some help on this por favor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.