From fb1911b38ff19d1e16c503e4cfa2204f3785273d Mon Sep 17 00:00:00 2001 From: Shahyar G Date: Wed, 21 Sep 2022 21:19:52 +0200 Subject: [PATCH 1/2] fix: reorder types in package.json exports --- package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 29cfa6ea..deff42d5 100644 --- a/package.json +++ b/package.json @@ -33,30 +33,30 @@ "browser": "umd/graphql-ws.js", "exports": { ".": { + "types": "./lib/index.d.ts", "require": "./lib/index.js", "import": "./lib/index.mjs", - "types": "./lib/index.d.ts", "browser": "./umd/graphql-ws.js" }, "./lib/use/ws": { + "types": "./lib/use/ws.d.ts", "require": "./lib/use/ws.js", - "import": "./lib/use/ws.mjs", - "types": "./lib/use/ws.d.ts" + "import": "./lib/use/ws.mjs" }, "./lib/use/uWebSockets": { + "types": "./lib/use/uWebSockets.d.ts", "require": "./lib/use/uWebSockets.js", - "import": "./lib/use/uWebSockets.mjs", - "types": "./lib/use/uWebSockets.d.ts" + "import": "./lib/use/uWebSockets.mjs" }, "./lib/use/@fastify/websocket": { + "types": "./lib/use/@fastify/websocket.d.ts", "require": "./lib/use/@fastify/websocket.js", - "import": "./lib/use/@fastify/websocket.mjs", - "types": "./lib/use/@fastify/websocket.d.ts" + "import": "./lib/use/@fastify/websocket.mjs" }, "./lib/use/fastify-websocket": { + "types": "./lib/use/fastify-websocket.d.ts", "require": "./lib/use/fastify-websocket.js", - "import": "./lib/use/fastify-websocket.mjs", - "types": "./lib/use/fastify-websocket.d.ts" + "import": "./lib/use/fastify-websocket.mjs" }, "./package.json": "./package.json" }, From 57b9849092cc75e0c146b6aab3aed20e21dbc42b Mon Sep 17 00:00:00 2001 From: Denis Badurina Date: Wed, 21 Sep 2022 21:39:54 +0200 Subject: [PATCH 2/2] root types on top --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index deff42d5..b295152f 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "node": ">=10" }, "packageManager": "yarn@3.2.3", + "types": "lib/index.d.ts", "main": "lib/index.js", "module": "lib/index.mjs", "browser": "umd/graphql-ws.js", @@ -60,7 +61,6 @@ }, "./package.json": "./package.json" }, - "types": "lib/index.d.ts", "files": [ "lib", "umd",