feat(cli): detect project NPM package manager on init#10504
feat(cli): detect project NPM package manager on init#10504lucasfernog merged 10 commits intotauri-apps:devfrom
Conversation
lucasfernog
left a comment
There was a problem hiding this comment.
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 thedevandbuildcommands, 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