Skip to content

Commit 12dc20f

Browse files
committed
fix: moved the env helper to the lib directory because Oclif treats every file under the commands path as a command, which can lead to unexpected behavior
1 parent 0aa38ba commit 12dc20f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cli/commands/headwatcher/down.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Command} from "@oclif/core";
22
import {execa} from "execa";
3-
import {getEnv} from "./common.js";
3+
import {getEnv} from "../../lib/headwatcher/env.js";
44

55
export default class HeadwatcherDown extends Command {
66
static description = "Shutdown Ethereum Head Watcher";

cli/commands/headwatcher/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Command} from "@oclif/core";
22
import {execa} from "execa";
3-
import {getEnv} from "./common.js";
3+
import {getEnv} from "../../lib/headwatcher/env.js";
44

55
export default class HeadwatcherLogs extends Command {
66
static description = "Output logs of Ethereum Head Watcher";

cli/commands/headwatcher/up.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Command} from "@oclif/core";
22
import {execa} from "execa";
3-
import {getEnv} from "./common.js";
3+
import {getEnv} from "../../lib/headwatcher/env.js";
44

55
export default class HeadwatcherUp extends Command {
66
static description = "Start Ethereum Head Watcher";

cli/commands/headwatcher/common.ts renamed to cli/lib/headwatcher/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {baseConfig, jsonDb} from "../../config/index.js";
2-
import {getLidoLocatorAddress} from "../../lib/lido/index.js";
2+
import {getLidoLocatorAddress} from "../lido/index.js";
33
import fs from "node:fs";
44

55
export async function getEnv() {

0 commit comments

Comments
 (0)