adityanandanx / appwrite-migration

MIT License
3 stars 0 forks source link

bug: node-appwrite peer dependency #2

Open Sanchitbajaj02 opened 9 months ago

Sanchitbajaj02 commented 9 months ago

Currently the package node-appwrite is added as a dependency in this package but the if the appwrite is already installed in the user system, it will just be installed multiple times.

To fix this issue, a peer dependency configuration is required so that this package utilizes the user installed package

SharonIV0x86 commented 9 months ago

You can add peer dependencies to package.json file or (optional) locally remove the Appwrite installation of user and let yours be installed.

Sanchitbajaj02 commented 9 months ago

Actually we are not sure how peer dependency works. Currently, the package itself has a node-appwrite installed. We want to use the appwrite instance that user already initialized. If we can access that, we will directly parse the appwrite classes instead of schema object that we create