Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanmani1122 committed Jan 24, 2025
1 parent 679a083 commit f983826
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/synthetic-chain/src/cli/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawnSync } from 'node:child_process';
import { existsSync, realpathSync } from 'node:fs';
import {resolve as resolvePath} from 'node:path';
import { resolve as resolvePath } from 'node:path';
import { ProposalInfo, imageNameForProposal } from './proposals.js';

const executeHostScriptIfPresent = (
Expand All @@ -9,14 +9,19 @@ const executeHostScriptIfPresent = (
) => {
const scriptPath = `${resolvePath('.')}/proposals/${proposal.path}/host/${scriptName}`;
if (fileExists(scriptPath)) {
console.log(`Running script ${scriptName} for proposal ${proposal.proposalName}`);
console.log(
`Running script ${scriptName} for proposal ${proposal.proposalName}`,
);
spawnSync(scriptPath, { stdio: 'inherit' });
}
};

const fileExists = (name: string) => existsSync(name);

const propagateMessageFilePath = (env: typeof process.env, proposal: ProposalInfo) => {
const propagateMessageFilePath = (
env: typeof process.env,
proposal: ProposalInfo,
) => {
const fileName = `${proposal.proposalName}-message-file.tmp`;
const { HOME } = env;

Expand Down

0 comments on commit f983826

Please sign in to comment.