Skip to content

Commit 1cd9b63

Browse files
committed
..
1 parent caceedc commit 1cd9b63

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

examples/persisted-documents/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"module": "Node16",
55
"outDir": "dist",
66
"resolveJsonModule": true,
7-
"skipLibCheck": true
7+
"skipLibCheck": true,
8+
"rootDir": "./src"
89
},
910
"include": ["src/**/*"]
1011
}

packages/utils/graphql-codegen-testing/src/typescript.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
ScriptKind,
1414
ScriptTarget,
1515
ScriptTarget as ScriptTargetType,
16+
version as tsVersion,
1617
} from 'typescript';
1718
import { Types } from '@graphql-codegen/plugin-helpers';
1819

@@ -55,6 +56,10 @@ export function validateTs(
5556
options.alwaysStrict = true;
5657
options.strictFunctionTypes = true;
5758
}
59+
if (tsVersion.startsWith('6.')) {
60+
options.ignoreDeprecations ||= '6.0';
61+
options.types ||= ['@types/node'];
62+
}
5863

5964
const contents: string =
6065
typeof pluginOutput === 'string'

0 commit comments

Comments
 (0)