Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do you use node-notifier? #74

Closed
atassis opened this issue Sep 9, 2021 · 4 comments
Closed

Why do you use node-notifier? #74

atassis opened this issue Sep 9, 2021 · 4 comments

Comments

@atassis
Copy link

atassis commented Sep 9, 2021

node-notifier has nothing to do with uploading data into sharepoint and can be used separately.

@s-KaiNet
Copy link
Owner

s-KaiNet commented Sep 9, 2021

Because it's part of the spsave options

@atassis
Copy link
Author

atassis commented Sep 9, 2021

Опции это следствие, а не причина
Я бы хотел использовать пакет на сервере, но не хочу тащить лишние зависимости. node-notifier можно спокойно использовать там, где оно необходимо отдельно от вашего пакета

@s-KaiNet
Copy link
Owner

s-KaiNet commented Sep 9, 2021

Набор опций это выбор автора библиотеки. Я не могу уменьшать количество опций только потому, что кто-то не пользуется какими-то из них.

У вас есть несколько путей решения проблемы. Если вы используете webpack, то можно указать node-notifier в externals секции, чтобы он не увеличивал размер бандла. Можно сделать форк spsave и опубликовать свою версию с необходимым функционалом (чтобы убрать нотификации нужно удалить несколько строк). Или смириться с дополнительной "лишней" зависимостью и использовать модуль as-is.

@atassis
Copy link
Author

atassis commented Sep 9, 2021

Ок, понял вашу позицию

@atassis atassis closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants