@niondigital/env-util
- Environment variables already set take precedence.
- Loads environment variables from a
.env.local
file in the root package's base path (meant to be ignored in git). Already existing environment variables take precedence.
- Loads environment variables from a
.env
file in the root package's base path. Already existing environment variables take precedence.
Load additional .env files
import { loadEnvironment } from '@niondigital/env-util';
loadEnvironment('path/to/.env');
Package development
Creating a release
- Make changes and increase version number package.json/package-lock.json
- Execute
npm run build
- Commit changes
- Execute
npm publish && git push && git push --tags