Skip to content

Commit

Permalink
fix(misc): use preset apps instead of empty (#19051)
Browse files Browse the repository at this point in the history
(cherry picked from commit e8fb1f4)
  • Loading branch information
FrozenPandaz committed Sep 7, 2023
1 parent ac2bea7 commit 655a0a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/shared/guides/module-federation/faster-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Now, let's continue by creating an empty Nx workspace.

```shell
# Replace acme with desired scope
npx create-nx-workspace acme --preset=empty
npx create-nx-workspace acme --preset=apps
cd acme
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function createTestProject() {
});

execSync(
`<%= packageManagerCommands.exec %> --yes create-nx-workspace@latest ${projectName} --preset empty --no-nxCloud --no-interactive`,
`<%= packageManagerCommands.exec %> --yes create-nx-workspace@latest ${projectName} --preset apps --no-nxCloud --no-interactive`,
{
cwd: dirname(projectDirectory),
stdio: 'inherit',
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/utils/testing-utils/nx-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function runNxNewCommand(args?: string, silent?: boolean) {
return execSync(
`node ${require.resolve(
'nx'
)} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=empty ${
)} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=apps ${
args || ''
}`,
{
Expand Down

0 comments on commit 655a0a7

Please sign in to comment.