Skip to content

Commit

Permalink
delete_schema fixes (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Mar 18, 2022
1 parent 29ab8c5 commit e790e48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tsent/cmd/delete_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ var deleteSchemaCmd = &cobra.Command{
if err != nil {
return err
}
var opts []codegen.ConstructOption
opts := []codegen.ConstructOption{
codegen.WriteAll(),
}
if rootInfo.debug {
opts = append(opts, codegen.DebugMode())
}
Expand Down Expand Up @@ -125,6 +127,7 @@ func getFiles(nodeData *schema.NodeData) []string {
ret := []string{
fmt.Sprintf("src/schema/%s.ts", packageName),
fmt.Sprintf("src/ent/generated/%s_base.ts", packageName),
fmt.Sprintf("src/ent/generated/%s_query_base.ts", packageName),
fmt.Sprintf("src/ent/%s.ts", packageName),
fmt.Sprintf("src/graphql/resolvers/generated/%s_type.ts", packageName),
}
Expand Down

0 comments on commit e790e48

Please sign in to comment.