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

Deprecate electron-is-dev #32

Closed
ghost opened this issue Mar 8, 2022 · 2 comments
Closed

Deprecate electron-is-dev #32

ghost opened this issue Mar 8, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2022

Electron.js now has a built-in solution called app.isPackaged.
Run:

npm deprecate electron-is-dev "Use 'app.isPackaged' from electron.js instead of electron-is-dev"
@sindresorhus
Copy link
Owner

https://github.com/sindresorhus/electron-is-dev#how-is-this-different-than-appispackaged

@ghost
Copy link
Author

ghost commented Mar 8, 2022

Setting through an environment variable already can be done natively. process.env.APP_DEBUG === true || app.isPackaged. This package only occupies space and most people don't use it for the purpose it has nowadays.

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