Skip to content

Commit

Permalink
fix: adds dep install to sub-project builds
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar committed Feb 7, 2022
1 parent decdbbe commit b3df759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Expand Up @@ -144,7 +144,6 @@ export class TurborepoProject extends typescript.TypeScriptProject {
private readonly projectReferences: boolean
private readonly jestModuleNameMapper: boolean
private readonly parallelWorkflows: boolean
private readonly setupNodeStep: JobStep

constructor(options: TurborepoProjectOptions) {
const setupNodeStep: JobStep = {
Expand Down Expand Up @@ -173,8 +172,6 @@ export class TurborepoProject extends typescript.TypeScriptProject {
})
}

this.setupNodeStep = setupNodeStep

this.pathMapping = options.pathMapping ?? false
this.projectReferences = options.projectReferences ?? false
this.jestModuleNameMapper = options.jestModuleNameMapper ?? false
Expand Down Expand Up @@ -319,7 +316,7 @@ export class TurborepoProject extends typescript.TypeScriptProject {
name: 'Checkout',
uses: 'actions/checkout@v2',
},
this.setupNodeStep,
...this.renderWorkflowSetup({ mutable: false }),
{
name: 'Build',
run: `npx turbo run build --scope=${matrixScope} --include-dependencies`,
Expand Down
2 changes: 2 additions & 0 deletions test/__snapshots__/sub-projects.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3df759

Please sign in to comment.