@gql.tada/cli-utils 1.9.0 → 1.9.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @gql.tada/cli-utils
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Bump to `@0no-co/graphqlsp@^1.17.3` to include go-to-definition support
8
+ Submitted by [@kitten](https://github.com/kitten) (See [#569](https://github.com/0no-co/gql.tada/pull/569))
9
+ - ⚠️ Fix teardown of interactive CLI keyhandlers on Node 24 with non-interactive stdin stream
10
+ Submitted by [@kitten](https://github.com/kitten) (See [#566](https://github.com/0no-co/gql.tada/pull/566))
11
+ - Refine how `references` are walked and when they conflict. We should only check references if we haven't yet found a plugin entry, and allow duplicate entries, if their output locations don't conflict
12
+ Submitted by [@kitten](https://github.com/kitten) (See [#568](https://github.com/0no-co/gql.tada/pull/568))
13
+ - Updated dependencies (See [#568](https://github.com/0no-co/gql.tada/pull/568))
14
+ - @gql.tada/internal@1.2.1
15
+
16
+ ## 1.9.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Update to `@0no-co/graphqlsp@^1.17.2`
21
+ Submitted by [@kitten](https://github.com/kitten) (See [#558](https://github.com/0no-co/gql.tada/pull/558))
22
+
3
23
  ## 1.9.0
4
24
 
5
25
  ### Minor Changes
@@ -2807,12 +2807,17 @@ function initTTY(t = {}) {
2807
2807
  });
2808
2808
  }
2809
2809
  function cleanup() {
2810
- if (t.isTTY) {
2811
- t.setRawMode(!1);
2810
+ try {
2811
+ if (t.isTTY) {
2812
+ t.setRawMode(!1);
2813
+ }
2814
+ t.removeListener("keypress", onKeypress);
2815
+ if ("function" == typeof t.unref) {
2816
+ t.unref();
2817
+ }
2818
+ } catch {} finally {
2819
+ a.complete();
2812
2820
  }
2813
- a.complete();
2814
- t.removeListener("keypress", onKeypress);
2815
- t.unref();
2816
2821
  }
2817
2822
  if (t.isTTY) {
2818
2823
  t.setRawMode(!0);
@@ -3072,14 +3077,27 @@ async function* run$6(t, r) {
3072
3077
  if (a.length > 1 && (r.output || t.pipeTo)) {
3073
3078
  throw errorMessage$1("Output path was specified, while multiple projects are configured.\n" + hint(`You can only output all projects to their ${code('"tadaOutputLocation"')} options\nwhen multiple projects are set up through ${code('"references"')}.`));
3074
3079
  }
3075
- for (var n of a) {
3080
+ var n = new Set;
3081
+ for (var i of a) {
3082
+ var o = outputDestinations(i);
3083
+ if (o.length && o.every((t => n.has(t)))) {
3084
+ continue;
3085
+ }
3086
+ for (var s of o) {
3087
+ n.add(s);
3088
+ }
3076
3089
  if (a.length > 1) {
3077
- yield projectHeader(n.label);
3090
+ yield projectHeader(i.label);
3078
3091
  }
3079
- yield* runProject$3(t, r, n);
3092
+ yield* runProject$3(t, r, i);
3080
3093
  }
3081
3094
  }
3082
3095
 
3096
+ function outputDestinations(t) {
3097
+ var {pluginConfig: r, projectPath: a} = t;
3098
+ return ("schemas" in r ? r.schemas.map((t => t.tadaOutputLocation)) : [ r.tadaOutputLocation ]).filter((t => !!t)).map((t => u.resolve(a, t)));
3099
+ }
3100
+
3083
3101
  async function* runProject$3(t, a, n) {
3084
3102
  var {pluginConfig: i, projectPath: o} = n;
3085
3103
  var s = r.loadRef(i);