@graphql-codegen/cli 7.4.0 → 7.4.1-alpha-20260901235806-682b7c3494031f06ca8bbb7be4e63b1d32f82e31

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.
@@ -89,12 +89,16 @@ afterRun = () => Promise.resolve()) => {
89
89
  config: (0, plugin_helpers_1.normalizeOutputParam)(config.generates[filename]),
90
90
  }))) {
91
91
  // ParcelWatcher expects relative ignore patterns to be relative from watchDirectory,
92
- // but we expect filename from config to be relative from cwd, so we need to convert
93
- const filenameRelativeFromWatchDirectory = (0, path_1.relative)(watchDirectory, (0, path_1.resolve)(process.cwd(), entry.filename));
92
+ // but we expect filename from config to be relative from cwd, so we need to convert.
93
+ // ParcelWatcher (like micromatch, see findHighestCommonDirectory below) expects glob
94
+ // patterns with POSIX `/` separators even on Windows, so normalize `relative()`'s
95
+ // OS-native output and build the preset glob by string concatenation instead of
96
+ // `path.join`, which would otherwise re-introduce `\` on Windows.
97
+ const filenameRelativeFromWatchDirectory = (0, path_1.relative)(watchDirectory, (0, path_1.resolve)(process.cwd(), entry.filename)).replace(/\\/g, '/');
94
98
  if (entry.config.preset) {
95
99
  const extension = entry.config.presetConfig?.extension;
96
100
  if (extension) {
97
- ignored.push((0, path_1.join)(filenameRelativeFromWatchDirectory, '**', '*' + extension));
101
+ ignored.push(`${filenameRelativeFromWatchDirectory}/**/*${extension}`);
98
102
  }
99
103
  }
100
104
  else {
package/cjs/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '7.4.0';
4
+ exports.version = '7.4.1-alpha-20260901235806-682b7c3494031f06ca8bbb7be4e63b1d32f82e31';
@@ -1,4 +1,4 @@
1
- import { isAbsolute, join, relative, resolve, sep } from 'path';
1
+ import { isAbsolute, relative, resolve, sep } from 'path';
2
2
  import debounce from 'debounce';
3
3
  import logSymbols from 'log-symbols';
4
4
  import mm from 'micromatch';
@@ -85,12 +85,16 @@ afterRun = () => Promise.resolve()) => {
85
85
  config: normalizeOutputParam(config.generates[filename]),
86
86
  }))) {
87
87
  // ParcelWatcher expects relative ignore patterns to be relative from watchDirectory,
88
- // but we expect filename from config to be relative from cwd, so we need to convert
89
- const filenameRelativeFromWatchDirectory = relative(watchDirectory, resolve(process.cwd(), entry.filename));
88
+ // but we expect filename from config to be relative from cwd, so we need to convert.
89
+ // ParcelWatcher (like micromatch, see findHighestCommonDirectory below) expects glob
90
+ // patterns with POSIX `/` separators even on Windows, so normalize `relative()`'s
91
+ // OS-native output and build the preset glob by string concatenation instead of
92
+ // `path.join`, which would otherwise re-introduce `\` on Windows.
93
+ const filenameRelativeFromWatchDirectory = relative(watchDirectory, resolve(process.cwd(), entry.filename)).replace(/\\/g, '/');
90
94
  if (entry.config.preset) {
91
95
  const extension = entry.config.presetConfig?.extension;
92
96
  if (extension) {
93
- ignored.push(join(filenameRelativeFromWatchDirectory, '**', '*' + extension));
97
+ ignored.push(`${filenameRelativeFromWatchDirectory}/**/*${extension}`);
94
98
  }
95
99
  }
96
100
  else {
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '7.4.0';
1
+ export const version = '7.4.1-alpha-20260901235806-682b7c3494031f06ca8bbb7be4e63b1d32f82e31';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "7.4.0",
3
+ "version": "7.4.1-alpha-20260901235806-682b7c3494031f06ca8bbb7be4e63b1d32f82e31",
4
4
  "peerDependenciesMeta": {
5
5
  "@parcel/watcher": {
6
6
  "optional": true
@@ -43,9 +43,9 @@
43
43
  "tslib": "^2.4.0",
44
44
  "yaml": "^2.3.1",
45
45
  "yargs": "^18.0.0",
46
- "@graphql-codegen/client-preset": "^6.1.3",
47
46
  "@graphql-codegen/core": "^6.2.0",
48
- "@graphql-codegen/plugin-helpers": "^7.3.0"
47
+ "@graphql-codegen/plugin-helpers": "^7.3.0",
48
+ "@graphql-codegen/client-preset": "^6.1.3"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",