diff --git a/deno.jsonc b/deno.jsonc index 9140fae..a71fcd5 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "name": "@cross/env", - "version": "1.0.0", + "version": "1.0.1", "exports": { ".": "./mod.ts", "./load": "./load.ts" diff --git a/mod.ts b/mod.ts index 7756f01..1db0003 100644 --- a/mod.ts +++ b/mod.ts @@ -198,7 +198,7 @@ export function getAllEnv(prefix?: string): Record { switch (currentRuntime) { case "deno": for (const key of Object.keys(Deno.env.toObject())) { - if (!prefix || key.startsWith(prefix)) { + if (!key.startsWith("=") && (!prefix || key.startsWith(prefix))) { envVars[key] = Deno.env.get(key); } }