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

Add package manager agnostic build and dev scripts for Tauri #44

Conversation

carlos-menezes
Copy link

@carlos-menezes carlos-menezes commented Nov 18, 2023

This is an attempt at having package manager agnostic build and development scripts for Tauri.

Previously, if you didn't have yarn installed, both build and dev script could not be executed as the Tauri scripts were not taking into account the user's development environment.

This PR adds supports for both npm and yarn, but may easily be extended to support other package managers.

Closes #23

@carlos-menezes carlos-menezes marked this pull request as ready for review November 18, 2023 09:51
@pedropapa
Copy link

Could you please expand on why we should have "agnostic build scripts"? This project uses a Yarn lock file, hence every developer should install the dependencies using yarn as well. If you use npm or other dependency manager instead there's no guarantee you'll have the right dependency version installed, having multiple lock files is also not recommended and I'd also challenge why we should use different lock files as well.

IMO this PR creates unnecessary complexity. I also don't quite understand why we're using Yarn at all but I guess that's a different topic.

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

Successfully merging this pull request may close these issues.

Package manager agnostic Tauri build scripts
2 participants