* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)
When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.
* cleanup(core): reassign SELECTED_PM after each test run
* fix(core): augment args instead of hardcode --packageManager flag
* cleanup(core): use packageManagerLockFile instead of magic strings
* cleanup(core): fix typo in create-nx-workspace
* cleanup(core): ensure new workspace name for every test
* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)
When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.
* cleanup(core): reassign SELECTED_PM after each test run
* fix(core): augment args instead of hardcode --packageManager flag
* cleanup(core): use packageManagerLockFile instead of magic strings
* cleanup(core): fix typo in create-nx-workspace
* cleanup(core): ensure new workspace name for every test
* fix(core): move detectInvokedPackageManager off of tao
Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
* cleanup(core): normalized usage of fs-extra and updated fs-extra
* cleanup(misc): use fs over fs-extra when possible
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
* Simplify the determination & detection of the desired package manager.
* Add the `package-manager` option on plugin creation.
* Nx Cloud installation uses the appropriate package manager.
when creating plugin through npx create-nx-plugin, it fails by throwing error
Collection @nrwl/workpsace cannot be resolved
this commit changes the collection arguments pointing to proper path of the
module in tmp directory