deep-foundation / npm-packager

NPM packager package for Deep. It handles installation and publication of deep packages.
https://www.npmjs.com/package/@deep-foundation/npm-packager
The Unlicense
8 stars 1 forks source link

Make Uninstall link, that will start the uninstall process of the package #71

Open Konard opened 1 year ago

Konard commented 1 year ago

The key idea is to await deep.await all other promises so it would be possible for package to do come actions on uninstall before the package is deleted.

For example to wait all promises except this promise.

But can we await a single promise or all promises except executing one for the specified link?

Based on current version of the awaitPromise code: https://github.com/deep-foundation/deeplinks/blob/00a1ca0ca51b3b25ba59a31ee2b4f1f410c0f55b/imports/promise.ts#L37-L70

The answer is no.

Konard commented 1 year ago

It may be related to https://github.com/deep-foundation/npm-packager/issues/47