File tree Expand file tree Collapse file tree
examples/persisted-documents
packages/utils/graphql-codegen-testing/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "module" : " Node16" ,
55 "outDir" : " dist" ,
66 "resolveJsonModule" : true ,
7- "skipLibCheck" : true
7+ "skipLibCheck" : true ,
8+ "rootDir" : " ./src"
89 },
910 "include" : [" src/**/*" ]
1011}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313 ScriptKind ,
1414 ScriptTarget ,
1515 ScriptTarget as ScriptTargetType ,
16+ version as tsVersion ,
1617} from 'typescript' ;
1718import { 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'
You can’t perform that action at this time.
0 commit comments