graphql-jerky 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/lib.cjs CHANGED
@@ -1061,7 +1061,10 @@ class GeneratorContext {
1061
1061
  ? [
1062
1062
  jen.prop("subscription", this._renderGraphQLTypeIdentifier(subscriptionType)),
1063
1063
  ]
1064
- : []), jen.prop("types", jen.array(...types.map((type) => this._renderGraphQLTypeIdentifier(type)))), jen.prop("directives", jen.array(...Array.from(schema.getDirectives())
1064
+ : []), jen.prop("types", jen.array(...types.map((type) => this._renderGraphQLTypeIdentifier(type)))),
1065
+ // graphql-js adds the built-in directives only when the
1066
+ // directives list is not given, so include them explicitly.
1067
+ jen.prop("directives", jen.array(jen.spread(this._gql("specifiedDirectives")), ...Array.from(schema.getDirectives())
1065
1068
  .filter((d) => !isBuiltInDirective(d.name))
1066
1069
  .map((d) => this._renderGraphQLTypeIdentifier(d)))))),
1067
1070
  jen.export.default.id("schema"),
package/build/lib.mjs CHANGED
@@ -1059,7 +1059,10 @@ class GeneratorContext {
1059
1059
  ? [
1060
1060
  jen$1.prop("subscription", this._renderGraphQLTypeIdentifier(subscriptionType)),
1061
1061
  ]
1062
- : []), jen$1.prop("types", jen$1.array(...types.map((type) => this._renderGraphQLTypeIdentifier(type)))), jen$1.prop("directives", jen$1.array(...Array.from(schema.getDirectives())
1062
+ : []), jen$1.prop("types", jen$1.array(...types.map((type) => this._renderGraphQLTypeIdentifier(type)))),
1063
+ // graphql-js adds the built-in directives only when the
1064
+ // directives list is not given, so include them explicitly.
1065
+ jen$1.prop("directives", jen$1.array(jen$1.spread(this._gql("specifiedDirectives")), ...Array.from(schema.getDirectives())
1063
1066
  .filter((d) => !isBuiltInDirective(d.name))
1064
1067
  .map((d) => this._renderGraphQLTypeIdentifier(d)))))),
1065
1068
  jen$1.export.default.id("schema"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-jerky",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Jerky is a schema-first static graphql schema lightweight code generator.",
5
5
  "type": "module",
6
6
  "bin": {