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

Allow to remove the warning of lifecycle scripts for npm packages #28342

Open
oscarotero opened this issue Feb 28, 2025 · 0 comments
Open

Allow to remove the warning of lifecycle scripts for npm packages #28342

oscarotero opened this issue Feb 28, 2025 · 0 comments

Comments

@oscarotero
Copy link
Contributor

oscarotero commented Feb 28, 2025

There are some NPM packages that have lifecycle scripts that are not needed in Deno.

For example, Lume uses sharp to transform images, and this package has an install script only to check if everything is okay. I suggested to sharp maintainer to remove the script but it looks like it's useful in some contexts (but not applied to Deno). lovell/sharp#4318

The warning shown by Deno is a bit confusing and some people think it's an error. I'd like to have a way to omit these warnings. Maybe an option in deno.json file, for example:

{
   "ignoredLifecycleScripts": ["sharp"]
}
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

1 participant