Skip to content

Commit

Permalink
fix recipes build
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Dec 16, 2024
1 parent 0b03ce5 commit e03ae55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"build:package": "tsup",
"build:browser": "pnpm vite build",
"build:minified": "pnpm uglifyjs --compress --mangle --output dist/browser.min.mjs -- dist/browser.mjs",
"postbuild": "run-s type:declarations",
"postbuild": "run-s build:recipes type:declarations",
"build:recipes": "cd ../recipes && pnpm build:all && cd ../fuels",
"type:declarations": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
"type:check": "tsc --noEmit",
"prepublishOnly": "cp ../../README.md ./README.md"
Expand Down
4 changes: 2 additions & 2 deletions packages/recipes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"dist"
],
"scripts": {
"build": "run-s build:recipes build:package build:format",
"build:all": "run-s build:recipes build build:format",
"build:recipes": "tsx ./scripts/build-recipes.ts",
"build:package": "tsup",
"build": "tsup",
"build:format": "prettier --config ../../.prettierrc --log-level error --write .",
"postbuild": "tsx ../../scripts/postbuild.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/recipes/scripts/build-recipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { execSync } from 'child_process';
import { readFileSync, writeFileSync } from 'fs';
import { join } from 'path';

execSync(`fuels typegen -i src/contracts/src14 -o src/types`);
execSync(`node ../fuels/dist/bin.js typegen -i src/contracts/src14 -o src/types`);

const typesPath = join(__dirname, '..', 'src', 'types');
const supportedRecipes = ['Src14OwnedProxy']
Expand Down

0 comments on commit e03ae55

Please sign in to comment.