yjs / y-codemirror.next

Collaborative extensions for CodeMirror6
Other
159 stars 38 forks source link

Add types field in package.json exports #27

Open AkaraChen opened 1 year ago

AkaraChen commented 1 year ago

Is your feature request related to a problem? Please describe. Could not find a declaration file for module 'y-codemirror.next'. There are types at /dist/src/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'y-codemirror.next' library may need to update its package.json or typings.

Describe the solution you'd like Add types field

Describe alternatives you've considered

Additional context

lorefnon commented 1 year ago

@dmonad Please merge this change. Without this change this library can not be used in a project that uses moduleResolution: bundler (recommended now for all ts projects that use a bundler) in tsconfig.