Skip to content

Commit 4412cd8

Browse files
authored
fix vitest incompatibility
ATM vitest/vite cannot load graphql correctly. I have reported this to vite here: vitejs/vite#7879 I have tested this change with latest vitests and it seems to work correctly with this change. I will be using patch-package with graphql 16 for now, but it would be nice if this could land. Also why was `private: true` set here?
1 parent 59a73d6 commit 4412cd8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
"version": "16.5.0",
44
"description": "A Query Language and Runtime which can target any service.",
55
"license": "MIT",
6-
"private": true,
7-
"main": "index",
8-
"module": "index.mjs",
6+
"type": "commonjs",
7+
"main": "index.js",
8+
"exports": {
9+
".": {
10+
"require": "./index.js",
11+
"import": "./index.mjs"
12+
}
13+
},
914
"typesVersions": {
1015
">=4.1.0": {
1116
"*": [

0 commit comments

Comments
 (0)