From f12d89c5f78a9675405842fe82985c21b015a161 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolski Date: Fri, 29 Jul 2022 16:02:28 +0200 Subject: [PATCH] Update README instructions for local development --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 7e5189d..37c9bf0 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,26 @@ npm i @saleor/app-sdk ## Development +### How to link development version to your project + +If you would like to develop the SDK and test it with existing project: + +1. In the Saleor App SDK directory run command + +```bash +pnpm watch +``` + +Now any code change will trigger build operation automatically. + +2. In your project directory: + +```bash +pnpm add ../saleor-app-sdk/dist +``` + +As path to your local copy of the App SDK may be different, adjust it accordingly. + ### Code style Before committing the code, Git pre-hooks will check staged changes for