Skip to content

Commit

Permalink
fix: moved the env helper to the lib directory because Oclif treats…
Browse files Browse the repository at this point in the history
… every file under the `commands` path as a command, which can lead to unexpected behavior
  • Loading branch information
dputko committed Dec 25, 2024
1 parent 0aa38ba commit 12dc20f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/commands/headwatcher/down.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Command} from "@oclif/core";
import {execa} from "execa";
import {getEnv} from "./common.js";
import {getEnv} from "../../lib/headwatcher/env.js";

export default class HeadwatcherDown extends Command {
static description = "Shutdown Ethereum Head Watcher";
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/headwatcher/logs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Command} from "@oclif/core";
import {execa} from "execa";
import {getEnv} from "./common.js";
import {getEnv} from "../../lib/headwatcher/env.js";

export default class HeadwatcherLogs extends Command {
static description = "Output logs of Ethereum Head Watcher";
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/headwatcher/up.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Command} from "@oclif/core";
import {execa} from "execa";
import {getEnv} from "./common.js";
import {getEnv} from "../../lib/headwatcher/env.js";

export default class HeadwatcherUp extends Command {
static description = "Start Ethereum Head Watcher";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {baseConfig, jsonDb} from "../../config/index.js";
import {getLidoLocatorAddress} from "../../lib/lido/index.js";
import {getLidoLocatorAddress} from "../lido/index.js";
import fs from "node:fs";

export async function getEnv() {
Expand Down

0 comments on commit 12dc20f

Please sign in to comment.