Skip to content

Commit

Permalink
build: 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Oct 22, 2023
1 parent bf69788 commit ef4b912
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.github/
.vscode/
.yarn/
.prettierignore
test.js
.env
.env.*
env.ts
.pnp.*
.prettierignore
.yarnrc.yml
env.ts
test.js
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default cleanEnv(process.env, {
```ts
import { loadEnv } from "envars";

const env = await loadEnv("production", {
const [env] = await loadEnv("production", {
root: ".",
schema: "./core/env.ts",
mergeTo: process.env,
Expand Down Expand Up @@ -145,7 +145,7 @@ import { defineConfig } from "vite";
import { loadEnv } from "envars";

export default defineConfig(async ({ mode }) => {
const env = await loadEnv(mode, {
const [env] = await loadEnv(mode, {
root: "../",
schema: "./core/env.ts",
mergeTo: process.env,
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type SecretSource = "google" | "aws" | "azure";
*
* @see https://cloud.google.com/secret-manager
* @example
* const env = await loadEnv("development", {
* const [env, secrets] = await loadEnv("development", {
* root: "..",
* schema: "./core/env.ts",
* mergeTo: process.env,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const secretRegExp = /^secret:\/\/(\w+)\/(.*)$/;
*
* @see https://cloud.google.com/secret-manager
* @example
* const env = await loadEnv("development", {
* const [env, secrets] = await loadEnv("development", {
* root: "..",
* schema: "./core/env.ts",
* mergeTo: process.env,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "envars",
"version": "1.0.0",
"version": "1.0.1",
"packageManager": "[email protected]",
"description": "Load environment variables from .env files. Decode secret values from AWS Secrets Manager, Google Secret Manager, and other sources.",
"keywords": [
Expand Down

0 comments on commit ef4b912

Please sign in to comment.