Skip to content

Commit

Permalink
linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinta365 committed Apr 18, 2024
1 parent a23ca27 commit 27ab4ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cross/env",
"version": "1.0.1",
"version": "1.0.2",
"exports": {
".": "./mod.ts",
"./load": "./load.ts"
Expand Down
3 changes: 2 additions & 1 deletion lib/filehandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EnvOptions, FileReadError, UnsupportedEnvironmentError } from "./helpers.ts";
import { FileReadError, UnsupportedEnvironmentError } from "./helpers.ts";
import type { EnvOptions } from "./helpers.ts";
import { readFile } from "node:fs/promises";

/**
Expand Down
13 changes: 2 additions & 11 deletions mod.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import { assert, assertEquals, assertThrows } from "@std/assert";
import { ValidationError } from "./lib/helpers.ts";
import {
getAllEnv,
getEnv,
hasEnv,
requireEnv,
setEnv,
setupEnv,
validateAndGetEnv,
validateEnv,
ValidatorFunction,
} from "./mod.ts";
import { getAllEnv, getEnv, hasEnv, requireEnv, setEnv, setupEnv, validateAndGetEnv, validateEnv } from "./mod.ts";
import type { ValidatorFunction } from "./mod.ts";
import { test } from "@cross/test";

/** ==== getEnv() ==== */
Expand Down
9 changes: 2 additions & 7 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
* retrieving environment variables across Deno, Bun and Node.js
*/

import {
EnvOptions,
UndefinedEnvironmentError,
UnsupportedEnvironmentError,
ValidationError,
ValidatorFunction,
} from "./lib/helpers.ts";
import { UndefinedEnvironmentError, UnsupportedEnvironmentError, ValidationError } from "./lib/helpers.ts";
import type { EnvOptions, ValidatorFunction } from "./lib/helpers.ts";
import { simpleMerge } from "@cross/deepmerge";
import { getCurrentRuntime } from "@cross/runtime";
import { loadEnvFile } from "./lib/filehandler.ts";
Expand Down

0 comments on commit 27ab4ef

Please sign in to comment.