Skip to content

Commit f0560b0

Browse files
committed
Fixes for build issues and issues with missing exports
1 parent 1698cad commit f0560b0

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

.changeset/weak-apes-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
Fix for missing exports for testkit

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"husky": "6.0.0",
4141
"lint-staged": "11.0.0",
4242
"@types/node": "14.17.3",
43-
"bob-the-bundler": "1.4.1",
43+
"bob-the-bundler": "1.2.1",
4444
"eslint-config-standard": "16.0.3",
4545
"eslint-plugin-import": "2.23.4",
4646
"eslint-plugin-node": "11.1.0",

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"devDependencies": {
3030
"@types/graphql-depth-limit": "1.1.2",
3131
"@types/eslint": "7.2.13",
32-
"bob-the-bundler": "1.4.1",
32+
"bob-the-bundler": "1.2.1",
3333
"graphql-config": "3.3.0",
3434
"graphql": "15.5.0",
3535
"typescript": "4.3.4"

packages/plugin/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export * from './parser';
44
export * from './utils';
55
export * from './types';
66
export * from './estree-parser';
7+
export * from './testkit';

packages/plugin/src/testkit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
33
import { ASTKindToNode } from 'graphql';
44
import { resolve } from 'path';
55
import { GraphQLESTreeNode } from './estree-parser';
6-
import { GraphQLESLintRule, ParserOptions } from './types';
6+
import { ParserOptions } from './types';
77

88
export type GraphQLESlintRuleListener<WithTypeInfo extends boolean> = {
99
[K in keyof ASTKindToNode]?: (node: GraphQLESTreeNode<ASTKindToNode[K], WithTypeInfo>) => void;
@@ -37,7 +37,7 @@ export class GraphQLRuleTester extends require('eslint').RuleTester {
3737

3838
runGraphQLTests<Config>(
3939
name: string,
40-
rule: any,
40+
rule: any, // Actually, it's GraphQLESLintRule, but TS has issues with that
4141
tests: {
4242
valid?: Array<string | GraphQLValidTestCase<Config>>;
4343
invalid?: Array<string | GraphQLInvalidTestCase<Config>>;
File renamed without changes.

yarn.lock

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,11 +2502,6 @@
25022502
"@typescript-eslint/types" "4.27.0"
25032503
eslint-visitor-keys "^2.0.0"
25042504

2505-
2506-
version "0.28.3"
2507-
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.28.3.tgz#9461bdbf334d616759b0e7e5415e2f480b9aa30f"
2508-
integrity sha512-g3gk4D9itbhUQa5MtN7TOdeoQnNLkPDCox5SBaQ/H3Or5lo59TOaZWrLb+x47StiAJ+8DXZS/9MJ67cIBWSsRw==
2509-
25102505
"@yarnpkg/lockfile@^1.1.0":
25112506
version "1.1.0"
25122507
resolved "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31"
@@ -2830,13 +2825,12 @@ [email protected]:
28302825
dependencies:
28312826
is-windows "^1.0.0"
28322827

2833-
bob-the-bundler@1.4.1:
2834-
version "1.4.1"
2835-
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-1.4.1.tgz#794382f60f0d2a68c57d85a41d06caf4a45cb1b4"
2836-
integrity sha512-Ho7JLV8ePKjWgV1USjoZK7w0rJ64RXv8WTBjP/J+l3wILem+TekcBPjKvpYvAqmWBZIliaKVyZhGHgTOaqjabw==
2828+
bob-the-bundler@1.2.1:
2829+
version "1.2.1"
2830+
resolved "https://registry.npmjs.org/bob-the-bundler/-/bob-the-bundler-1.2.1.tgz#ed759de2ac59f5bda71cb625d17f1cd787984e4e"
2831+
integrity sha512-mrmiqX10ghyMB6v4T/VXjmhQie8xrqoOCWZ0b3N8JmTqnzYpOZbSw9UaAygxGzg4V2hjwTz0Wl7H1GlXQnawVA==
28372832
dependencies:
28382833
"@rollup/plugin-node-resolve" "7.1.1"
2839-
"@vercel/ncc" "0.28.3"
28402834
builtins "4.0.0"
28412835
consola "2.11.3"
28422836
cosmiconfig "6.0.0"
@@ -3779,7 +3773,7 @@ [email protected]:
37793773

37803774
37813775
version "7.28.0"
3782-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820"
3776+
resolved "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820"
37833777
integrity sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==
37843778
dependencies:
37853779
"@babel/code-frame" "7.12.11"

0 commit comments

Comments
 (0)