1Password / onepassword-sdk-js

The official JavaScript SDK for 1Password
https://developer.1password.com/docs/sdks/
MIT License
41 stars 2 forks source link

Prepare repo for distribution #7

Closed AndyTitu closed 6 months ago

AndyTitu commented 7 months ago

Thought process

This is the new layout of the project:

| Root package - meant to manage workspace - won't get published. | ---> Package 1password-sdk-examples that imports @1password/sdk - meant for executing after clone - won't get published | ---> Package @1password/sdk that imports @1password/sdk-core - will get published | ---> Package @1password/sdk-core that exports the WASM bindings and the WASM binary - will get published

How to test

Install the sdk in a random npm project, and check if you can use it:

## NPM
npm install @1password/sdk
Marton6 commented 6 months ago

✅ I have tested the install method and it worked correctly.

Approving for correctness, but I don't have experience with npm configuration files so I can't say for sure whether that's correct.