Skip to content

Commit

Permalink
[github actions] fix errors on lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Jun 13, 2024
1 parent 170465b commit 9908066
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 12 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"@types/bn.js": "^5.1.5",
"bigint-buffer": "^1.1.5",
"gts": "^5.3.0",
"eslint": "8.57.0",
"eslint-plugin-node": "11.1.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/lib/anchor-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
"@coral-xyz/anchor": "^0.29.0",
"@marinade.finance/ts-common": "workspace: 2.4.5",
"@marinade.finance/web3js-common": "workspace: 2.4.5"
},
"engines": {
"node": ">=16"
}
}
16 changes: 12 additions & 4 deletions packages/marinade-ts-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
configureLogger,
parseWalletFromOpts,
} from '@marinade.finance/cli-common'
import { ExecutionError } from '@marinade.finance/web3js-common'

const DEFAULT_KEYPAIR_PATH = '~/.config/solana/id.json'
const logger: Logger = configureLogger()
Expand Down Expand Up @@ -77,9 +78,16 @@ program
installCommands(program)

program.parseAsync(process.argv).then(
() => process.exit(),
(err: unknown) => {
logger.error(err)
process.exit(1)
() => {
logger.debug({ resolution: 'Success', args: process.argv })
},
(err: Error) => {
logger.error(
err instanceof ExecutionError
? err.messageWithTransactionError()
: err.message
)
logger.debug({ resolution: 'Failure', err, args: process.argv })
process.exitCode = 1
}
)
134 changes: 126 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9908066

Please sign in to comment.