How to Build

Pack didPass Wallet sdk Into Local NPM Package

  1. In your didPass-Wallet/sdk directory run the following command

. build-sdk-package.sh
  1. It will produce tgz file {package-name}-{package-version}.tgz

Using the Package Locally


  1. Move the tgz file into the directory of the project that requires that package.

  2. Inside your project (for example didPass-Wallet/app) package.json change the @didpasswallet/sdk dependency version into the new tgz filepath

"@didpasswallet/sdk": "file:<path_to_tgz_file>"
  1. Run npm install to install the package in your client app

If the project doesn't have a dependency reference to @didpasswallet/sdk in its package.json, manually install the package using the following command:

npm install <path_to_tgz_file>

Last updated