* 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>

{{links}}
> npx create-nx-workspace
{{what-is-nx}}
{{getting-started}}
? Workspace name (e.g., org name) happyorg
? What to create in the new workspace web components [a workspace with a single app built using web components]
? Application name myapp
? Default stylesheet format CSS
If it's your first Nx project, the command will recommend you to install the nx package globally, so you can invoke nx directly without going through yarn or npm.
Serving Application
- Run
nx serve myappto serve the newly generated application! - Run
nx test myappto test it. - Run
nx e2e myapp-e2eto run e2e tests for it.
Angular users can also run ng g/serve/test/e2e.
{{resources}}