Skip to content

Commit bc31cd9

Browse files
authored
upd (#3915)
1 parent e7c436b commit bc31cd9

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.changeset/purple-otters-explode.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphiql/plugin-code-exporter': patch
3+
'@graphiql/plugin-explorer': patch
4+
'graphiql': patch
5+
---
6+
7+
fix unpkg.com results to `Not found` when `main` field isn't specified in `package.json`

packages/graphiql-plugin-code-exporter/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"directory": "packages/graphiql-plugin-code-exporter"
99
},
1010
"author": "LekoArts",
11+
"main": "dist/index.js",
1112
"types": "dist/index.d.ts",
1213
"license": "MIT",
1314
"keywords": [
@@ -23,10 +24,7 @@
2324
"exports": {
2425
"./package.json": "./package.json",
2526
"./style.css": "./dist/style.css",
26-
".": {
27-
"types": "./dist/index.d.ts",
28-
"import": "./dist/index.js"
29-
}
27+
".": "./dist/index.js"
3028
},
3129
"scripts": {
3230
"dev": "vite build --watch",

packages/graphiql-plugin-explorer/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"url": "https://github.com/graphql/graphiql",
88
"directory": "packages/graphiql-plugin-explorer"
99
},
10+
"main": "dist/index.js",
1011
"types": "dist/index.d.ts",
1112
"license": "MIT",
1213
"keywords": [
@@ -22,10 +23,7 @@
2223
"exports": {
2324
"./package.json": "./package.json",
2425
"./style.css": "./dist/style.css",
25-
".": {
26-
"types": "./dist/index.d.ts",
27-
"import": "./dist/index.js"
28-
}
26+
".": "./dist/index.js"
2927
},
3028
"scripts": {
3129
"dev": "vite build --watch",

packages/graphiql-react/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
"./package.json": "./package.json",
1717
"./style.css": "./dist/style.css",
1818
"./font/*": "./font/*",
19-
".": {
20-
"types": "./dist/index.d.ts",
21-
"import": "./dist/index.js"
22-
}
19+
".": "./dist/index.js"
2320
},
2421
"types": "dist/index.d.ts",
2522
"keywords": [

packages/graphiql/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"url": "https://github.com/graphql/graphiql/issues?q=issue+label:graphiql"
1818
},
1919
"license": "MIT",
20+
"main": "dist/index.js",
2021
"types": "dist/index.d.ts",
2122
"files": [
2223
"dist",

0 commit comments

Comments
 (0)