Skip to content

Commit

Permalink
thread package.json into ReadTurboConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lyon committed Jan 10, 2023
1 parent 5864e26 commit 615163a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli/internal/prune/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ func (p *prune) prune(opts *turbostate.PrunePayload) error {
// tasks may refer to workspaces that no longer exist. to remedy this,
// we will need to remove from the Pipeline the TaskDefinitions that no longer apply

turboJSON, err := fs.ReadTurboConfig(".", nil)
packageJSON, err := fs.ReadPackageJSON("package.json")

if err != nil {
return errors.Wrap(err, "failed to load package.json")
}

turboJSON, err := fs.ReadTurboConfig(".", packageJSON)

if err != nil {
return errors.Wrap(err, "failed to load turbo.json")
Expand Down

0 comments on commit 615163a

Please sign in to comment.