Skip to content

Commit

Permalink
fix(cli): typecheck before bundle (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Jul 16, 2024
1 parent 3120ca8 commit c95e38e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"!{lib,src}/**/*.test.{js,ts}"
],
"scripts": {
"build": "pnpm bundle",
"build": "pnpm tsc --noEmit && pnpm bundle",
"postbuild": "pnpm install",
"bundle": "esbuild --platform=node --format=esm --bundle src/index.ts --outfile=lib/index.js --sourcemap --inject:src/cjs-shim.ts --external:@sentio/sdk",
"cli": "tsx src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export async function getABI(
}
}

export function getABIFilePath(chain: string, name: string, address: string): string {
export function getABIFilePath(chain: string, name: string, address?: string): string {
let subpath
let filename = name ?? address
switch (chain) {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"!{lib,src}/tests"
],
"scripts": {
"build": "pnpm bundle",
"build": "pnpm tsc --noEmit && pnpm bundle",
"build:all": "pnpm --filter=$(node -p \"require('./package.json').name\")... build",
"bundle": "tsup --config src/tsup.config.ts",
"compile": "tsc",
Expand Down

0 comments on commit c95e38e

Please sign in to comment.