Skip to content

Commit e7bcbe4

Browse files
committed
Use min. jiti v2.3.0 to handle default import like before
1 parent 8edeaa1 commit e7bcbe4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.changeset/tame-radios-leave.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Bump dependencies major versions:
66

77
- cosmiconfig v9
88
- debounce v2
9-
- jiti v2
9+
- jiti v2.3

packages/graphql-codegen-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"graphql-config": "^5.1.1",
6464
"inquirer": "^8.0.0",
6565
"is-glob": "^4.0.1",
66-
"jiti": "^2.0.0",
66+
"jiti": "^2.3.0",
6767
"json-to-pretty-yaml": "^1.2.2",
6868
"listr2": "^4.0.5",
6969
"log-symbols": "^4.0.0",

packages/graphql-codegen-cli/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function customLoader(ext: 'json' | 'yaml' | 'js' | 'ts' | 'mts' | 'cts'): Codeg
7575
}
7676

7777
if (ext === 'ts') {
78-
const jiti = createJiti('', { interopDefault: true });
79-
return jiti.import(filepath);
78+
const jitiLoader = createJiti('');
79+
return jitiLoader.import(filepath, { default: true });
8080
}
8181
};
8282
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10632,7 +10632,7 @@ jiti@^1.18.2, jiti@^1.21.6:
1063210632
resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.7.tgz#9dd81043424a3d28458b193d965f0d18a2300ba9"
1063310633
integrity sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==
1063410634

10635-
jiti@^2.0.0:
10635+
jiti@^2.3.0:
1063610636
version "2.5.1"
1063710637
resolved "https://registry.yarnpkg.com/jiti/-/jiti-2.5.1.tgz#bd099c1c2be1c59bbea4e5adcd127363446759d0"
1063810638
integrity sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==

0 commit comments

Comments
 (0)