Skip to content

Commit 374e30f

Browse files
fix(core): getProjectFilesForProject should consider project root in addition to source root (#543)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
1 parent 7043b08 commit 374e30f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
main:
1414
name: Nx Cloud - Main Job
15-
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.2
15+
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.8
1616
with:
1717
main-branch-name: 'master'
1818
parallel-commands: |
@@ -28,6 +28,6 @@ jobs:
2828
2929
agents:
3030
name: Nx Cloud - Agents
31-
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.2
31+
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.8
3232
with:
3333
number-of-agents: 3

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
jobs:
1010
main:
1111
name: Nx Cloud - Main Job
12-
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.2
12+
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.8
1313
with:
1414
main-branch-name: 'master'
1515
parallel-commands: |
@@ -26,6 +26,6 @@ jobs:
2626
2727
agents:
2828
name: Nx Cloud - Agents
29-
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.2
29+
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.8
3030
with:
3131
number-of-agents: 3

packages/utils/src/lib/utility-functions/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function getProjectFilesForProject(
126126
return host
127127
.children(project.sourceRoot ?? project.root)
128128
.filter((x) => x.endsWith('proj'))
129-
.map((x) => `${project.sourceRoot}/${x}`);
129+
.map((x) => `${project.sourceRoot ?? project.root}/${x}`);
130130
}
131131

132132
/**

0 commit comments

Comments
 (0)