Skip to content

Commit

Permalink
Fixes for build issues and issues with missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Jun 20, 2021
1 parent 1698cad commit f0560b0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-apes-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-eslint/eslint-plugin': patch
---

Fix for missing exports for testkit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"husky": "6.0.0",
"lint-staged": "11.0.0",
"@types/node": "14.17.3",
"bob-the-bundler": "1.4.1",
"bob-the-bundler": "1.2.1",
"eslint-config-standard": "16.0.3",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-node": "11.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"devDependencies": {
"@types/graphql-depth-limit": "1.1.2",
"@types/eslint": "7.2.13",
"bob-the-bundler": "1.4.1",
"bob-the-bundler": "1.2.1",
"graphql-config": "3.3.0",
"graphql": "15.5.0",
"typescript": "4.3.4"
Expand Down
1 change: 1 addition & 0 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './parser';
export * from './utils';
export * from './types';
export * from './estree-parser';
export * from './testkit';
4 changes: 2 additions & 2 deletions packages/plugin/src/testkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
import { ASTKindToNode } from 'graphql';
import { resolve } from 'path';
import { GraphQLESTreeNode } from './estree-parser';
import { GraphQLESLintRule, ParserOptions } from './types';
import { ParserOptions } from './types';

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

runGraphQLTests<Config>(
name: string,
rule: any,
rule: any, // Actually, it's GraphQLESLintRule, but TS has issues with that
tests: {
valid?: Array<string | GraphQLValidTestCase<Config>>;
invalid?: Array<string | GraphQLInvalidTestCase<Config>>;
Expand Down
File renamed without changes.
16 changes: 5 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,6 @@
"@typescript-eslint/types" "4.27.0"
eslint-visitor-keys "^2.0.0"

"@vercel/ncc@0.28.3":
version "0.28.3"
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.28.3.tgz#9461bdbf334d616759b0e7e5415e2f480b9aa30f"
integrity sha512-g3gk4D9itbhUQa5MtN7TOdeoQnNLkPDCox5SBaQ/H3Or5lo59TOaZWrLb+x47StiAJ+8DXZS/9MJ67cIBWSsRw==

"@yarnpkg/lockfile@^1.1.0":
version "1.1.0"
resolved "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31"
Expand Down Expand Up @@ -2830,13 +2825,12 @@ better-path-resolve@1.0.0:
dependencies:
is-windows "^1.0.0"

bob-the-bundler@1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-1.4.1.tgz#794382f60f0d2a68c57d85a41d06caf4a45cb1b4"
integrity sha512-Ho7JLV8ePKjWgV1USjoZK7w0rJ64RXv8WTBjP/J+l3wILem+TekcBPjKvpYvAqmWBZIliaKVyZhGHgTOaqjabw==
bob-the-bundler@1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/bob-the-bundler/-/bob-the-bundler-1.2.1.tgz#ed759de2ac59f5bda71cb625d17f1cd787984e4e"
integrity sha512-mrmiqX10ghyMB6v4T/VXjmhQie8xrqoOCWZ0b3N8JmTqnzYpOZbSw9UaAygxGzg4V2hjwTz0Wl7H1GlXQnawVA==
dependencies:
"@rollup/plugin-node-resolve" "7.1.1"
"@vercel/ncc" "0.28.3"
builtins "4.0.0"
consola "2.11.3"
cosmiconfig "6.0.0"
Expand Down Expand Up @@ -3779,7 +3773,7 @@ eslint@7.24.0:

eslint@7.28.0:
version "7.28.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820"
resolved "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820"
integrity sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==
dependencies:
"@babel/code-frame" "7.12.11"
Expand Down

0 comments on commit f0560b0

Please sign in to comment.