Skip to content

Commit

Permalink
fix: schema dependencies are deduplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Jun 16, 2022
1 parent 7c8c5bf commit 7a6df88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 90 deletions.
88 changes: 0 additions & 88 deletions src/templates/operation.mustache

This file was deleted.

9 changes: 7 additions & 2 deletions src/templates/schema.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{#each (filter (compose (not) (equals name) (ref-name)) (pick-ref schema))}}
import { {{ref-name this}} } from "./{{change-case @root.options.fileNamingStyle (ref-name this)}}"
{{#each
(filter
(compose (not) (equals name))
(uniq (map (ref-name) (pick-ref schema)))
)
}}
import { {{this}} } from "./{{change-case @root.options.fileNamingStyle this}}"
{{#if @last}}


Expand Down

0 comments on commit 7a6df88

Please sign in to comment.