diff --git a/.changeset/purple-otters-explode.md b/.changeset/purple-otters-explode.md new file mode 100644 index 0000000000..fd44b94598 --- /dev/null +++ b/.changeset/purple-otters-explode.md @@ -0,0 +1,7 @@ +--- +'@graphiql/plugin-code-exporter': patch +'@graphiql/plugin-explorer': patch +'graphiql': patch +--- + +fix unpkg.com results to `Not found` when `main` field isn't specified in `package.json` diff --git a/packages/graphiql-plugin-code-exporter/package.json b/packages/graphiql-plugin-code-exporter/package.json index a6bcd55d3c..ade70b163f 100644 --- a/packages/graphiql-plugin-code-exporter/package.json +++ b/packages/graphiql-plugin-code-exporter/package.json @@ -8,6 +8,7 @@ "directory": "packages/graphiql-plugin-code-exporter" }, "author": "LekoArts", + "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", "keywords": [ @@ -23,10 +24,7 @@ "exports": { "./package.json": "./package.json", "./style.css": "./dist/style.css", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - } + ".": "./dist/index.js" }, "scripts": { "dev": "vite build --watch", diff --git a/packages/graphiql-plugin-explorer/package.json b/packages/graphiql-plugin-explorer/package.json index bf90b51c9d..5d305a7663 100644 --- a/packages/graphiql-plugin-explorer/package.json +++ b/packages/graphiql-plugin-explorer/package.json @@ -7,6 +7,7 @@ "url": "https://github.com/graphql/graphiql", "directory": "packages/graphiql-plugin-explorer" }, + "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", "keywords": [ @@ -22,10 +23,7 @@ "exports": { "./package.json": "./package.json", "./style.css": "./dist/style.css", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - } + ".": "./dist/index.js" }, "scripts": { "dev": "vite build --watch", diff --git a/packages/graphiql-react/package.json b/packages/graphiql-react/package.json index 525d67a684..3f4326d71b 100644 --- a/packages/graphiql-react/package.json +++ b/packages/graphiql-react/package.json @@ -16,10 +16,7 @@ "./package.json": "./package.json", "./style.css": "./dist/style.css", "./font/*": "./font/*", - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - } + ".": "./dist/index.js" }, "types": "dist/index.d.ts", "keywords": [ diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index 24d04eac66..3b3749b319 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -17,6 +17,7 @@ "url": "https://github.com/graphql/graphiql/issues?q=issue+label:graphiql" }, "license": "MIT", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist",