Skip to content

Commit

Permalink
fix(core): getProjectFilesForProject should consider project root in …
Browse files Browse the repository at this point in the history
…addition to source root (#543)

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
  • Loading branch information
kellyrbourg and AgentEnder committed Oct 18, 2022
1 parent 7043b08 commit 374e30f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.2
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.8
with:
main-branch-name: 'master'
parallel-commands: |
Expand All @@ -28,6 +28,6 @@ jobs:
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.2
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.8
with:
number-of-agents: 3
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.2
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.8
with:
main-branch-name: 'master'
parallel-commands: |
Expand All @@ -26,6 +26,6 @@ jobs:
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.2
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.8
with:
number-of-agents: 3
2 changes: 1 addition & 1 deletion packages/utils/src/lib/utility-functions/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function getProjectFilesForProject(
return host
.children(project.sourceRoot ?? project.root)
.filter((x) => x.endsWith('proj'))
.map((x) => `${project.sourceRoot}/${x}`);
.map((x) => `${project.sourceRoot ?? project.root}/${x}`);
}

/**
Expand Down

0 comments on commit 374e30f

Please sign in to comment.