The Hop Protocol monorepo
Lib/App | Current Version | Description |
---|---|---|
@hop-protocol/frontend | React Frontend UI | |
@hop-protocol/sdk | V1 TypeScript Hop SDK | |
@hop-protocol/hop-node | TypeScript Hop Node |
Lib/App | Current Version | Description |
---|---|---|
@hop-protocol/v2-sdk | V2 TypeScript Hop SDK | |
@hop-protocol/v2-hop-node | TypeScript Hop Node |
The Hop monorepo uses PNPM for package and workspace management.
Install dependencies & link packages
pnpm install
pnpm build
All commands should be run from the root of the monorepo.
# Install a single package and its dependencies
pnpm --filter <package_name>... install
# Build a single package and its dependencies
pnpm --filter <package_name>... build
# Run a PNPM script in all packages
pnpm <script_name>
If you are developing on a single package only and need to ignore the rest of the packages, you need to install with --include-workspace-root
. This is because the installation of a single package does not install the root’s dependencies, which are usually needed for building and linting.
pnpm --filter <package_name>... install --include-workspace-root