FuelLabs / fuels-ts

Fuel Network Typescript SDK
https://docs.fuel.network/docs/fuels-ts/
Apache License 2.0
44.35k stars 1.33k forks source link

Detect the users package manager for `create fuels` #2552

Open petertonysmith94 opened 1 month ago

petertonysmith94 commented 1 month ago

Summary

Detect the package manager that a user uses to bootstrap using create fuels and use that package manage to install the application. We can then remove the following CLI options:

Relates to #2444

mvares commented 2 weeks ago

hey @petertonysmith94, what logic would you use for this? I think we would base it on .lock files (like yarn.lock, pnpm.lock)

petertonysmith94 commented 2 weeks ago

Hey @mvares,

I don't think it's would be possible to base it off a .lock file given the lock file won't be present after running create fuels. I think this needs some investigations on whether it's possible - maybe looking at other CLI's for inspiration.