Packages | @latest Version |
Size | Description |
---|---|---|---|
@o2/injected-wallets | - | - | Injected wallet modules |
@o2/types | - | - | Shared Typescript types |
@o2/common | - | - | Utils common to all packages |
git clone [email protected]:blocknative/O2-Wallets.git
cd O2-Wallets
yarn
yarn build
At the point the deps are installed and the modules are built and ready for integration.
Using yarn link you can integrate these packages locally.
First run yarn link
in each module:
$(cd packages/types; yarn link)
$(cd packages/common; yarn link)
$(cd packages/injected; yarn link)
Note: the $()
syntax allows us to execute the command without changing the current directory.
Now that these packages are linked we can go into our app and link them:
cd my-app
yarn link @o2/injected-wallets
yarn link @o2/common
yarn link @o2/types
Running yarn dev
in the root package will run yarn dev
in all subpackages which will rebuild on changes.
Adding a “common” dependency to ALL packages
yarn add dep-name -W
lerna add sibling-dep --scope=dependant-package
Example:
lerna add @o2/types --scope=@o2/injected-wallets