-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(cli): detect project NPM package manager on init #10504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using the create-tauri-app logic here doesn't help us since we must support more kinds of projects (CTA already knows the scripts in the project since it controls the entire project template). I would only focus on detecting the package manager and using it on the default script while still prompting the user (instead of the current npm run
default)
Package Changes Through f6d85a6There are 6 changes which include tauri-build with prepatch, tauri-codegen with prerelease, tauri-utils with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri with prerelease Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
Hi, there's duplicate interaction in command
cargo tauri init
(or using other package managers forinit
). Instead of repeatedly asking for thedev
andbuild
commands, we could just simply let the users choose which package manager they want to use and automatically select the corresponding commands. This works the same aspnpm create tauri
.Resolved: #10257