The Hop Protocol v1 monorepo
Library | Current Version | Description |
---|---|---|
@hop-protocol/core | Metadata and config | |
@hop-protocol/sdk | TypeScript Hop SDK |
Application | Current Version | Description |
---|---|---|
@hop-protocol/frontend | React Frontend UI | |
@hop-protocol/hop-node | TypeScript Hop Node |
Install dependencies & link packages
npm install
npm run build
All commands should be run from the root of the monorepo.
# Install a single package
npm install -w <package_name>
# Build a single package
npm run build -w <package_name>
# Run an NPM script in all packages
npm run build --workspaces
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.
npm install -w @<package_name> --include-workspace-root