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): pnpm -r exec pnpm link --global --dir ./pnpm build:packagesfuels-wallet root directory, edit scripts/deps.sh. @fuel-ui, enable this configuration: LINK_FUEL_UI=true@fuel-ts, enable this configuration: LINK_FUEL_TS=truefuels-wallet root directory, run your dev command as you wish: pnpm dev
pnpm dev:deps
pnpm dev:crxNote
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:
pnpm setup If it still have problems, you might need to setup again (As pnpm releases new version, the global folder structure may change)
pnpm setup