Skip to content

Commit

Permalink
fix(core): projects inferrred in apps directory should be inferred as…
Browse files Browse the repository at this point in the history
… an application
  • Loading branch information
AgentEnder committed Mar 17, 2022
1 parent 83acbaf commit 6c064e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nx/src/shared/workspace.ts
Expand Up @@ -803,6 +803,11 @@ function buildProjectConfigurationFromPackageJson(
root: directory,
sourceRoot: directory,
name,
projectType:
nxJson.workspaceLayout?.appsDir &&
directory.startsWith(nxJson.workspaceLayout.appsDir)
? 'application'
: 'library',
};
}

Expand Down

0 comments on commit 6c064e6

Please sign in to comment.