Skip to content

Commit

Permalink
fix: do not start turbo:* commands in the root build step
Browse files Browse the repository at this point in the history
Because it will always run in CI, and we want to be able to control that.
  • Loading branch information
moltar committed Feb 8, 2022
1 parent bbbe56a commit ee656b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
16 changes: 10 additions & 6 deletions src/index.ts
Expand Up @@ -273,13 +273,17 @@ export class TurborepoProject extends typescript.TypeScriptProject {
this.compileTask.reset()

/**
* Turbo runs.
* Removes ESLint task from the root project
*/
this.postCompileTask.prependSpawn(this.turboRunTask('compile'))
this.postCompileTask.spawn(this.turboRunTask('build'))
this.testTask.reset() // removes root eslint
this.testTask.spawn(this.turboRunTask('test'))
this.testTask.spawn(this.turboRunTask('eslint'))
this.testTask.reset()

/**
* turbo:* commands
*/
this.turboRunTask('compile')
this.turboRunTask('build')
this.turboRunTask('test')
this.turboRunTask('eslint')

/**
* Adds a fake file into dist, so that artifacts download does not fail.
Expand Down
16 changes: 0 additions & 16 deletions test/__snapshots__/synth.test.ts.snap

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

0 comments on commit ee656b6

Please sign in to comment.