Skip to content

Commit

Permalink
refactor: yarn codegen script
Browse files Browse the repository at this point in the history
- use `ts-blank-space` since `tsx` is no longer in `node_modules/.bin`
- prefer yarn command instead of standalone script
  • Loading branch information
0xpatrickdev committed Oct 29, 2024
1 parent 3db1e46 commit 8f6eec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/orchestration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"scripts": {
"build": "exit 0",
"codegen": "scripts/fetch-chain-info.ts",
"codegen": "TS_BLANK_SPACE_EMIT=false node --import ts-blank-space/register scripts/fetch-chain-info.ts",
"prepack": "tsc --build tsconfig.build.json",
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
"test": "ava",
Expand Down Expand Up @@ -60,6 +60,7 @@
"@cosmjs/proto-signing": "^0.32.3",
"@endo/bundle-source": "^3.4.2",
"@endo/import-bundle": "^1.3.1",
"@endo/init": "^1.1.6",
"@endo/ses-ava": "^1.2.7",
"ava": "^5.3.1",
"c8": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/orchestration/scripts/fetch-chain-info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env tsx
/** @file Fetch canonical chain info to generate the minimum needed for agoricNames */
import '@endo/init';
import { ChainRegistryClient } from '@chain-registry/client';
import fsp from 'node:fs/promises';
import prettier from 'prettier';
Expand Down

0 comments on commit 8f6eec7

Please sign in to comment.