Skip to content

Commit 32d81e6

Browse files
committed
Run prettier fix after generating clients
1 parent b73eb8e commit 32d81e6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

clients/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@typescript-eslint/parser": "^7.16.1",
5454
"ava": "^6.1.3",
5555
"eslint": "^8.57.0",
56-
"prettier": "^3.3.3",
56+
"prettier": "^3.6.2",
5757
"rimraf": "^5.0.5",
5858
"tsup": "^8.1.2",
5959
"typedoc": "^0.25.12",

clients/js/src/generated/instructions/createAccountWithSeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function getCreateAccountWithSeedInstruction<
188188
getAccountMeta(accounts.payer),
189189
getAccountMeta(accounts.newAccount),
190190
getAccountMeta(accounts.baseAccount),
191-
].filter(<T,>(x: T | undefined): x is T => x !== undefined),
191+
].filter(<T>(x: T | undefined): x is T => x !== undefined),
192192
programAddress,
193193
data: getCreateAccountWithSeedInstructionDataEncoder().encode(
194194
args as CreateAccountWithSeedInstructionDataArgs

codama.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import path from 'node:path';
2+
import fs from 'node:fs';
23

3-
const { default: prettierOptions } = await import(
4-
path.resolve('clients', 'js', '.prettierrc.json'),
5-
{ with: { type: 'json' } }
4+
const prettierOptions = JSON.parse(
5+
fs.readFileSync(path.join('clients', 'js', '.prettierrc.json'), 'utf-8')
66
);
77

88
export default {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"scripts": {
44
"generate": "pnpm generate:clients",
5-
"generate:clients": "codama run --all"
5+
"generate:clients": "codama run --all && (cd clients/js && pnpm format:fix)"
66
},
77
"devDependencies": {
88
"@codama/renderers-js": "^1.3",
@@ -13,4 +13,4 @@
1313
"node": ">=v20.0.0"
1414
},
1515
"packageManager": "[email protected]"
16-
}
16+
}

0 commit comments

Comments
 (0)