@graphql-tools/code-file-loader 7.3.19 → 7.3.20

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/cjs/index.js CHANGED
@@ -13,7 +13,7 @@ const process_1 = require("process");
13
13
  const fs_1 = require("fs");
14
14
  const module_1 = require("module");
15
15
  const { readFile, access } = fs_1.promises;
16
- const FILE_EXTENSIONS = ['.ts', '.tsx', '.js', '.jsx', '.vue', '.svelte'];
16
+ const FILE_EXTENSIONS = ['.ts', '.mts', '.cts', '.tsx', '.js', '.mjs', 'cjs', '.jsx', '.vue', '.svelte'];
17
17
  function createGlobbyOptions(options) {
18
18
  return { absolute: true, ...options, ignore: [] };
19
19
  }
@@ -30,7 +30,8 @@ const buildIgnoreGlob = (path) => `!${path}`;
30
30
  * });
31
31
  * ```
32
32
  *
33
- * Supported extensions include: `.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`
33
+ * Supported extensions include: `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.mjs`,
34
+ * `.cjs`, `.jsx`, `.vue`, `.svelte`
34
35
  */
35
36
  class CodeFileLoader {
36
37
  constructor(config) {
package/esm/index.js CHANGED
@@ -9,7 +9,7 @@ import { cwd, env } from 'process';
9
9
  import { readFileSync, promises as fsPromises, existsSync } from 'fs';
10
10
  import { createRequire } from 'module';
11
11
  const { readFile, access } = fsPromises;
12
- const FILE_EXTENSIONS = ['.ts', '.tsx', '.js', '.jsx', '.vue', '.svelte'];
12
+ const FILE_EXTENSIONS = ['.ts', '.mts', '.cts', '.tsx', '.js', '.mjs', 'cjs', '.jsx', '.vue', '.svelte'];
13
13
  function createGlobbyOptions(options) {
14
14
  return { absolute: true, ...options, ignore: [] };
15
15
  }
@@ -26,7 +26,8 @@ const buildIgnoreGlob = (path) => `!${path}`;
26
26
  * });
27
27
  * ```
28
28
  *
29
- * Supported extensions include: `.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`
29
+ * Supported extensions include: `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.mjs`,
30
+ * `.cjs`, `.jsx`, `.vue`, `.svelte`
30
31
  */
31
32
  export class CodeFileLoader {
32
33
  constructor(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/code-file-loader",
3
- "version": "7.3.19",
3
+ "version": "7.3.20",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-tools/utils": "9.2.1",
11
- "@graphql-tools/graphql-tag-pluck": "7.4.5",
11
+ "@graphql-tools/graphql-tag-pluck": "7.4.6",
12
12
  "globby": "^11.0.3",
13
13
  "tslib": "^2.4.0",
14
14
  "unixify": "^1.0.0"
@@ -27,7 +27,8 @@ export type CodeFileLoaderOptions = {
27
27
  * });
28
28
  * ```
29
29
  *
30
- * Supported extensions include: `.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`
30
+ * Supported extensions include: `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.mjs`,
31
+ * `.cjs`, `.jsx`, `.vue`, `.svelte`
31
32
  */
32
33
  export declare class CodeFileLoader implements Loader<CodeFileLoaderOptions> {
33
34
  private config;
@@ -27,7 +27,8 @@ export type CodeFileLoaderOptions = {
27
27
  * });
28
28
  * ```
29
29
  *
30
- * Supported extensions include: `.ts`, `.tsx`, `.js`, `.jsx`, `.vue`, `.svelte`
30
+ * Supported extensions include: `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.mjs`,
31
+ * `.cjs`, `.jsx`, `.vue`, `.svelte`
31
32
  */
32
33
  export declare class CodeFileLoader implements Loader<CodeFileLoaderOptions> {
33
34
  private config;