enisdenjo / graphql-ws

Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
https://the-guild.dev/graphql/ws
MIT License
1.75k stars 162 forks source link

Npm and tsc build fails on 5.13.0 due to bun-types #478

Closed antego closed 1 year ago

antego commented 1 year ago

Expected Behaviour Build started by tsc -b tsconfig.json passes

Actual Behaviour Build fails with the error

node_modules/graphql-ws/lib/use/ws.d.ts:1:23 - error TS2688: Cannot find type definition file for 'bun-types'.

1 /// <reference types="bun-types" />

Debug Information Failing version is 5.13.0

Further Information Revert to version 5.12.1 fixes the problem

enisdenjo commented 1 year ago

Oooh, seems like TS build added the triple-slash directive to all declaration files - even though its only in the use/bun.ts. Sorry about that, fix incoming!

enisdenjo commented 1 year ago

:tada: This issue has been resolved in version 5.13.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: