Skip to content

Commit

Permalink
docs(nx): 📝 add sourceRoot to project config
Browse files Browse the repository at this point in the history
this fixes nx boundaries rule fix which relies on sourceRoot
  • Loading branch information
yjaaidi committed Jun 19, 2024
1 parent 7d77d7f commit 683643e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/cookbook/docs/nx/03-scaling/04-implicit-libs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ export const createNodesV2: CreateNodesV2 = [
/* This will add a project to the Nx graph for the detected library. */
[projectRoot]: {
name: projectName,
sourceRoot: projectRoot,
projectType: 'library',
},
},
Expand Down Expand Up @@ -320,6 +321,7 @@ export const createNodesV2: CreateNodesV2 = [
projects: {
[projectRoot]: {
name: projectName,
sourceRoot: projectRoot,
projectType: 'library',
// highlight-start
targets: {
Expand Down Expand Up @@ -368,6 +370,7 @@ export const createNodesV2: CreateNodesV2 = [
projects: {
[projectRoot]: {
name: projectName,
sourceRoot: projectRoot,
projectType: 'library',
// highlight-start
targets: {
Expand Down Expand Up @@ -526,6 +529,7 @@ export const createNodesV2: CreateNodesV2 = [
projects: {
[projectRoot]: {
name: projectName,
sourceRoot: projectRoot,
projectType: 'library',
tags: [`platform:${platform}`, `scope:${scope}`, `type:${type}`],
targets: {
Expand Down

0 comments on commit 683643e

Please sign in to comment.