quadstorejs / quadstore

A LevelDB-backed graph database for JS runtimes (Node.js, Deno, browsers, ...) supporting SPARQL queries and the RDF/JS interface.
https://github.com/quadstorejs/quadstore
MIT License
203 stars 14 forks source link

Dev dependency required to actor-init-sparql #116

Closed gsvarovsky closed 3 years ago

gsvarovsky commented 3 years ago

Working in Typescript, I had to add a devDependency to @comunica/actor-init-sparql so that the typings for Comunica are available and the project compiles.

This is a dev dependency only because node-quadstore-comunica bundles the Comunica code.

jacoscaz commented 3 years ago

I think the best way to address this is to include the relevant typings within quadstore-comunica by either copying them or crafting them by hand.

Any other solution I was able to come up with would result in having the entire comunica framework as a dependency of quadstore, much as you're experiencing right now, and I feel that would not be a healthy direction.

jacoscaz commented 3 years ago

@gsvarovsky could you test this with quadstore@7.1.0-beta.0, which I've just released to NPM with the beta tag?

gsvarovsky commented 3 years ago

Fixed in quadstore@7.1.0-beta.1