We support locally link with @fuel-ui
and @fuel-ts repositories
This will link dependencies within wallet monorepo to your global pnpm
store, enabling you to use @fuel-ui
and/or @fuel-ts
packages via links in your local projects.
This task may be tedious, but you can accomplish it by following these steps:
@fuel-ui
and/or @fuel-ts
):1pnpm -r exec pnpm link --global --dir ./
1pnpm build:packages
fuels-wallet
root directory, edit scripts/deps.sh
.@fuel-ui
, enable this configuration: 1LINK_FUEL_UI=true
@fuel-ts
, enable this configuration: 1LINK_FUEL_TS=true
fuels-wallet
root directory, run your dev command as you wish:1pnpm dev
2pnpm dev:deps
3pnpm dev:crx
Note
This command will:
- Link dependency repos across all wallet monorepo packages, including the root
- Run dev server with linked dependencies
Done! Now your changes in @fuel-ui
and/or @fuel-ts
will reflect in wallet project. Test with a simple console.log
to make sure it worked.
If you're linking for the first time, you might need:
1 pnpm setup
If it still have problems, you might need to setup again (As pnpm
releases new version, the global folder structure may change)
1 pnpm setup