Skip to content

Commit b11de81

Browse files
authored
fix(target_chains/fuel): run format after generating type files (#2268)
* fix(target_chains/fuel): run format after generating type files * update again
1 parent c2e05d0 commit b11de81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

target_chains/fuel/sdk/js/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
"scripts": {
2323
"usage-example": "ts-node src/examples/usage.ts",
2424
"build": "pnpm run generate-fuel-types && tsc && copyfiles -u 1 \"src/**/*.d.ts\" lib",
25-
"format": "prettier --write \"src/**/*.ts\"",
25+
"test:format": "prettier --check \"src/**/*.ts\"",
26+
"fix:format": "prettier --write \"src/**/*.ts\"",
2627
"test:lint": "eslint src/",
2728
"prepublishOnly": "pnpm run build && pnpm run test:lint",
2829
"preversion": "pnpm run test:lint",
29-
"version": "pnpm run format && git add -A src",
30-
"generate-fuel-types": "pnpm fuels typegen -i ../../contracts/pyth-contract/out/release/*-abi.json -o ./src/types && prettier --write \"./src/types/**/*.ts\""
30+
"version": "pnpm run test:format && git add -A src",
31+
"generate-fuel-types": "pnpm fuels typegen -i ../../contracts/pyth-contract/out/release/*-abi.json -o ./src/types && pnpm run fix:format"
3132
},
3233
"keywords": [
3334
"pyth",

0 commit comments

Comments
 (0)